diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-01-15 21:12:11 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-19 11:50:10 +0000 |
commit | 71af0c296f32545725705e16d91a816e0e765e27 (patch) | |
tree | 1d71de77b436c2bf67f3e9259d8e4ccebf8307f6 | |
parent | a4c8353472ebd1c432fbd5ca37f611f205660b60 (diff) | |
download | serenity-71af0c296f32545725705e16d91a816e0e765e27.zip |
Meta/Lagom: Make sure that libraries are always linked as PRIVATE
-rw-r--r-- | Meta/Lagom/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 9969e301e9..6e4b85fa03 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -251,7 +251,7 @@ function(lagom_test source) cmake_parse_arguments(LAGOM_TEST "" "WORKING_DIRECTORY" "LIBS" ${ARGN}) get_filename_component(name ${source} NAME_WE) add_executable(${name} ${source}) - target_link_libraries(${name} LibCore LibTest LibTestMain ${LAGOM_TEST_LIBS}) + target_link_libraries(${name} PRIVATE LibCore LibTest LibTestMain ${LAGOM_TEST_LIBS}) add_test( NAME ${name} COMMAND ${name} @@ -562,7 +562,7 @@ if (BUILD_LAGOM) foreach(source ${AK_TEST_SOURCES}) lagom_test(${source} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../Tests/AK) endforeach() - target_link_libraries(TestString LibUnicode) + target_link_libraries(TestString PRIVATE LibUnicode) # LibAudio file(GLOB LIBAUDIO_TEST_SOURCES CONFIGURE_DEPENDS "../../Tests/LibAudio/*.cpp") |