aboutsummaryrefslogtreecommitdiff
path: root/ports/utfcpp/fix-test.patch
blob: 43799c92207132291ef6ea1f318e0bb4667c97c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ac1646..c081d3d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,6 @@ endif()
 
 if(UTF8_TESTS)
     enable_testing()
-    add_subdirectory(extern/gtest)
+    find_package(GTest CONFIG REQUIRED)
     add_subdirectory(tests)
 endif()
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 06e0d7e..4ee6dd8 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -15,16 +15,16 @@ add_executable(noexceptionstests
 target_link_libraries(negative PRIVATE utf8::cpp)
 target_link_libraries(cpp11 PRIVATE
     utf8::cpp
-    gtest_main
+    GTest::gtest_main
     )
 target_link_libraries(apitests PRIVATE
     utf8::cpp
-    gtest_main
+    GTest::gtest_main
 )
 
 target_link_libraries(noexceptionstests PRIVATE
     utf8::cpp
-    gtest_main
+    GTest::gtest_main
 )
 target_compile_options(noexceptionstests PUBLIC -fno-exceptions)