aboutsummaryrefslogtreecommitdiff
path: root/ports/utfcpp/fix-test.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-10-13 14:46:28 -0700
committerGitHub <noreply@github.com>2020-10-13 14:46:28 -0700
commitcebe05184119cfabcc8f5c0e71c8673c22a1487b (patch)
tree4399850d61029f99fd0d36a09deda305e5fa9a90 /ports/utfcpp/fix-test.patch
parent0a41fb2dfa6b0714da83e00aa3802302c7ec7fb4 (diff)
downloadvcpkg-cebe05184119cfabcc8f5c0e71c8673c22a1487b.tar.gz
vcpkg-cebe05184119cfabcc8f5c0e71c8673c22a1487b.zip
[utfcpp] Use vcpkg_*_cmake and add features (#13521)
Diffstat (limited to 'ports/utfcpp/fix-test.patch')
-rw-r--r--ports/utfcpp/fix-test.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/ports/utfcpp/fix-test.patch b/ports/utfcpp/fix-test.patch
new file mode 100644
index 000000000..43799c922
--- /dev/null
+++ b/ports/utfcpp/fix-test.patch
@@ -0,0 +1,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)
+