summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--source/test/programs/CMakeLists.txt1
2 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8496ab4..8ec04fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,6 +44,7 @@ if(KIT_ENABLE_LIBRARY OR KIT_ENABLE_TESTING)
${KIT_TEST_LIBRARY} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/source>)
target_compile_features(${KIT_TEST_LIBRARY} PUBLIC c_std_11)
+ target_compile_features(${KIT_TEST_LIBRARY} PUBLIC cxx_std_11)
endif()
enable_testing()
diff --git a/source/test/programs/CMakeLists.txt b/source/test/programs/CMakeLists.txt
index 46bc8e9..e9f8856 100644
--- a/source/test/programs/CMakeLists.txt
+++ b/source/test/programs/CMakeLists.txt
@@ -20,7 +20,6 @@ if(KIT_ENABLE_TESTING)
TIMEOUT "30")
add_executable(cpp_example cpp_example.cpp)
- target_compile_features(cpp_example PRIVATE cxx_std_20)
target_link_libraries(cpp_example ${KIT_TEST_LIBRARY})
add_test(
NAME cpp_example_test