]> granicus.if.org Git - graphviz/commitdiff
tests: CMake: change test_common from a static to a shared library
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 22 Jul 2022 12:10:19 +0000 (14:10 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 25 Jul 2022 18:23:52 +0000 (20:23 +0200)
This was the original intention according to the commit message in
commit a9daedd8bee1b5620a933b612c3335b90bde263d.

.gitlab-ci.yml
tests/CMakeLists.txt

index 5581ea5da49c720d3cd85707a8d078b9dc91768f..86eda0e4c45a69fb4d68c16a8a400a5eeba56cca 100644 (file)
@@ -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
index 7cb56a2415d33d7102483e02f69bc496501d6e66..71277453e0d15a214e7a1824cb6b8afd966ba986 100644 (file)
@@ -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