aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/PaludisAddTest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/PaludisAddTest.cmake')
-rw-r--r--cmake/modules/PaludisAddTest.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmake/modules/PaludisAddTest.cmake b/cmake/modules/PaludisAddTest.cmake
index 38362e4a9..684da49c8 100644
--- a/cmake/modules/PaludisAddTest.cmake
+++ b/cmake/modules/PaludisAddTest.cmake
@@ -22,15 +22,12 @@ function(paludis_add_test test_name)
"${CMAKE_CURRENT_SOURCE_DIR}/${test_name}.cc")
endif()
if(PAT_GTEST)
- target_include_directories(${test_name}
- PRIVATE
- ${GTEST_INCLUDE_DIRS})
target_link_libraries(${test_name}
PRIVATE
libpaludis
libpaludisutil
- ${GTEST_BOTH_LIBRARIES}
- Threads::Threads
+ GTest::GTest
+ GTest::Main
${PAT_LINK_LIBRARIES})
endif()