forked from pool/utfcpp
allow building on wider range of systems OBS-URL: https://build.opensuse.org/request/show/1083185 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/utfcpp?expand=0&rev=18
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
--- utfcpp-3.2.3.orig/tests/CMakeLists.txt 2023-01-26 09:48:11.283201600 +0100
|
|
+++ utfcpp-3.2.3/tests/CMakeLists.txt 2023-01-26 09:49:10.139598712 +0100
|
|
@@ -1,13 +1,11 @@
|
|
add_executable(negative ${PROJECT_SOURCE_DIR}/tests/negative.cpp)
|
|
add_executable(cpp11 ${PROJECT_SOURCE_DIR}/tests/test_cpp11.cpp)
|
|
-add_executable(cpp17 ${PROJECT_SOURCE_DIR}/tests/test_cpp17.cpp)
|
|
add_executable(apitests ${PROJECT_SOURCE_DIR}/tests/apitests.cpp)
|
|
|
|
add_executable(noexceptionstests ${PROJECT_SOURCE_DIR}/tests/noexceptionstests.cpp)
|
|
|
|
target_link_libraries(negative PRIVATE utf8::cpp)
|
|
target_link_libraries(cpp11 PRIVATE utf8::cpp)
|
|
-target_link_libraries(cpp17 PRIVATE utf8::cpp)
|
|
target_link_libraries(apitests PRIVATE utf8::cpp)
|
|
target_link_libraries(noexceptionstests PRIVATE utf8::cpp)
|
|
|
|
@@ -29,15 +27,8 @@
|
|
CXX_STANDARD_REQUIRED YES
|
|
CXX_EXTENSIONS NO)
|
|
|
|
-set_target_properties(cpp17
|
|
- PROPERTIES
|
|
- CXX_STANDARD 17
|
|
- CXX_STANDARD_REQUIRED YES
|
|
- CXX_EXTENSIONS NO)
|
|
-
|
|
add_test(negative_test negative ${PROJECT_SOURCE_DIR}/tests/test_data/utf8_invalid.txt)
|
|
add_test(cpp11_test cpp11)
|
|
-add_test(cpp17_test cpp17)
|
|
add_test(api_test apitests)
|
|
add_test(noexceptions_test noexceptionstests)
|
|
|