From: Magnus Jacobsson Date: Fri, 22 Jul 2022 12:10:19 +0000 (+0200) Subject: tests: CMake: change test_common from a static to a shared library X-Git-Tag: 5.0.1~31^2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e080aaac9df5c9c9f59aba777afc1208e33a2b62;p=graphviz tests: CMake: change test_common from a static to a shared library This was the original intention according to the commit message in commit a9daedd8bee1b5620a933b612c3335b90bde263d. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5581ea5da..86eda0e4c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -739,6 +739,8 @@ ubuntu22-04-cmake-ASan-build-for-ctest: paths: # the C++ test programs - build/tests/test_* + # the common C++ test library + - build/tests/libtest_common.so # the ctest files - build/**/CTestTestfile.cmake # archive all shared libraries produced directly by "cmake diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7cb56a241..71277453e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,7 +9,7 @@ enable_testing() # for convenience, make a library that depends on everything so each # separate test can be as small as possible -add_library(test_common STATIC +add_library(test_common SHARED catch2_main.cpp svgpp_context.cpp svgpp_context.h