From: Matthias Maier Date: Sat, 3 Dec 2022 02:47:23 +0000 (-0600) Subject: CMake: use PUBLIC scope in deal_ii_add_test() X-Git-Tag: v9.5.0-rc1~446^2~20 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07113e3ae136f21e85a1a0af697d59df2d9398a9;p=dealii.git CMake: use PUBLIC scope in deal_ii_add_test() --- diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index bc4c383f94..6a755cc1cc 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} + target_link_libraries(${_target} PUBLIC ${TEST_LIBRARIES} ${TEST_LIBRARIES_${_build}} )