From: Matthias Maier Date: Thu, 23 Mar 2023 19:13:05 +0000 (-0500) Subject: CMake: do not use PUBLIC keyword for target_link_libraries for tests X-Git-Tag: v9.5.0-rc1~407^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86a0a52acbf00576164a58626db0bbbf1cbc9bf1;p=dealii.git CMake: do not use PUBLIC keyword for target_link_libraries for tests --- diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index 6a755cc1cc..bc4c383f94 100644 --- a/cmake/macros/macro_deal_ii_add_test.cmake +++ b/cmake/macros/macro_deal_ii_add_test.cmake @@ -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}} )