From 2370b95a86725b5d8e3b8b520b11f7dcd17628b9 Mon Sep 17 00:00:00 2001 From: Nemanja Trifunovic Date: Sun, 7 Jul 2019 20:27:54 -0400 Subject: [PATCH] Compile negative test with C++ 98 An attempt to ensure the library can be compiled with a C++ 98 compiler. Unfortunatelly, GTEST can't be compiled with C++ 98, so only the negative tests are included at this point. --- tests/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9d135a2..06e0d7e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -28,6 +28,12 @@ target_link_libraries(noexceptionstests PRIVATE ) target_compile_options(noexceptionstests PUBLIC -fno-exceptions) +set_target_properties(negative + PROPERTIES + CXX_STANDARD 98 + 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(api_test apitests)