summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-07-07 14:22:02 (GMT)
committerBrad King <brad.king@kitware.com>2023-07-07 14:23:31 (GMT)
commitd2a28d185a2f7ee61c5fe601dcf6189ef2b6d164 (patch)
tree0c7599334fde0055f85f3647fb78c33de8206a93 /Tests
parent15970e50f2448b0f38f47759c95c14a850af15c0 (diff)
downloadCMake-d2a28d185a2f7ee61c5fe601dcf6189ef2b6d164.zip
CMake-d2a28d185a2f7ee61c5fe601dcf6189ef2b6d164.tar.gz
CMake-d2a28d185a2f7ee61c5fe601dcf6189ef2b6d164.tar.bz2
Tests: Improve order of CMakeLibTests link libraries
Avoid repeating `libCMakeLib.a` multiple times on the link line.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLib/CMakeLists.txt b/Tests/CMakeLib/CMakeLists.txt
index fc3c23b..8ce8f67 100644
--- a/Tests/CMakeLib/CMakeLists.txt
+++ b/Tests/CMakeLib/CMakeLists.txt
@@ -67,7 +67,7 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/testUVProcessChainInput.txt" "HELLO WORL
create_test_sourcelist(CMakeLib_TEST_SRCS CMakeLibTests.cxx ${CMakeLib_TESTS})
add_executable(CMakeLibTests ${CMakeLib_TEST_SRCS})
-target_link_libraries(CMakeLibTests CMakeLib CTestLib)
+target_link_libraries(CMakeLibTests PRIVATE CTestLib CMakeLib)
if(CMake_BUILD_PCH)
target_precompile_headers(CMakeLibTests PRIVATE "<iostream>" "<cm3p/uv.h>")
target_compile_definitions(CMakeLibTests PRIVATE "NOMINMAX")