]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: do not use PUBLIC keyword for target_link_libraries for tests 14962/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 23 Mar 2023 19:13:05 +0000 (14:13 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 23 Mar 2023 19:13:05 +0000 (14:13 -0500)
cmake/macros/macro_deal_ii_add_test.cmake

index 6a755cc1cceb69fff701745e5ab1dab950193f8f..bc4c383f94b95384106bd973acc9e23e9e75ca31 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} PUBLIC
+        target_link_libraries(${_target}
           ${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.