]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: use PUBLIC scope in deal_ii_add_test()
authorMatthias Maier <tamiko@43-1.org>
Sat, 3 Dec 2022 02:47:23 +0000 (20:47 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 17 Mar 2023 12:44:53 +0000 (07:44 -0500)
cmake/macros/macro_deal_ii_add_test.cmake

index bc4c383f94b95384106bd973acc9e23e9e75ca31..6a755cc1cceb69fff701745e5ab1dab950193f8f 100644 (file)
@@ -455,7 +455,7 @@ function(deal_ii_add_test _category _test_name _comparison_file)
         set_target_properties(${_target} PROPERTIES OUTPUT_NAME ${_target_short})
 
         deal_ii_setup_target(${_target} ${_build})
-        target_link_libraries(${_target}
+        target_link_libraries(${_target} PUBLIC
           ${TEST_LIBRARIES} ${TEST_LIBRARIES_${_build}}
           )
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.