aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/test/CMakeLists.txt3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 87869950..131d11b2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -99,6 +99,7 @@ endif()
if(BUILD_TEST)
include(CTest)
enable_testing()
+ find_package(GTest REQUIRED)
add_subdirectory(test)
endif()
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index db5d0561..53c99f11 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -39,8 +39,7 @@ generate_export_header(gpgfrontend_test EXPORT_FILE_NAME "${_export_file}")
target_compile_definitions(gpgfrontend_test PUBLIC GF_TEST)
# link options
-target_link_libraries(gpgfrontend_test PRIVATE gtest)
-
+target_link_libraries(gpgfrontend_test PRIVATE GTest::gtest)
target_link_libraries(gpgfrontend_test PRIVATE gpgfrontend_core)
if(XCODE_BUILD)