diff options
Diffstat (limited to 'Tests/LibELF/CMakeLists.txt')
-rw-r--r-- | Tests/LibELF/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibELF/CMakeLists.txt b/Tests/LibELF/CMakeLists.txt index 7939865761..b417824fac 100644 --- a/Tests/LibELF/CMakeLists.txt +++ b/Tests/LibELF/CMakeLists.txt @@ -3,7 +3,7 @@ macro(add_dlopen_lib NAME FUNCTION) add_library(${NAME} SHARED Dynlib.cpp) target_compile_definitions(${NAME} PRIVATE -DFUNCTION=${FUNCTION}) # LibLine is not special, just an "external" dependency - target_link_libraries(${NAME} LibLine) + target_link_libraries(${NAME} PRIVATE LibLine) serenity_set_implicit_links(${NAME}) # Avoid execution by the test runner install(TARGETS ${NAME} @@ -16,7 +16,7 @@ add_dlopen_lib(DynlibB dynlibb_function) add_dlopen_lib(DynlibC dynlibc_function) set(CMAKE_INSTALL_RPATH $ORIGIN) add_dlopen_lib(DynlibD dynlibd_function) -target_link_libraries(DynlibD DynlibC) +target_link_libraries(DynlibD PRIVATE DynlibC) unset(CMAKE_INSTALL_RPATH) set(TEST_SOURCES |