update to 3.1
include cmake import file symlink headers in the previous location for compatibility
This commit is contained in:
parent
984ecbe93f
commit
bab4e31b21
5 changed files with 68 additions and 4 deletions
32
utf8cpp-use-system-gtest.patch
Normal file
32
utf8cpp-use-system-gtest.patch
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
diff -up utfcpp-3.1/CMakeLists.txt.gtest utfcpp-3.1/CMakeLists.txt
|
||||
--- utfcpp-3.1/CMakeLists.txt.gtest 2019-04-26 23:49:17.000000000 +0200
|
||||
+++ utfcpp-3.1/CMakeLists.txt 2019-10-22 09:44:02.721256016 +0200
|
||||
@@ -32,6 +32,5 @@ endif()
|
||||
|
||||
if(UTF8_TESTS)
|
||||
enable_testing()
|
||||
- add_subdirectory(extern/gtest)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
diff -up utfcpp-3.1/tests/CMakeLists.txt.gtest utfcpp-3.1/tests/CMakeLists.txt
|
||||
--- utfcpp-3.1/tests/CMakeLists.txt.gtest 2019-04-26 23:49:17.000000000 +0200
|
||||
+++ utfcpp-3.1/tests/CMakeLists.txt 2019-10-22 09:46:24.165698530 +0200
|
||||
@@ -16,15 +16,18 @@ target_link_libraries(negative PRIVATE u
|
||||
target_link_libraries(cpp11 PRIVATE
|
||||
utf8::cpp
|
||||
gtest_main
|
||||
+ gtest
|
||||
)
|
||||
target_link_libraries(apitests PRIVATE
|
||||
utf8::cpp
|
||||
gtest_main
|
||||
+ gtest
|
||||
)
|
||||
|
||||
target_link_libraries(noexceptionstests PRIVATE
|
||||
utf8::cpp
|
||||
gtest_main
|
||||
+ gtest
|
||||
)
|
||||
target_compile_options(noexceptionstests PUBLIC -fno-exceptions)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue