From 0b1c0f3eb647a7630b473bfec75a3411dab89583 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Tue, 9 Aug 2022 22:28:14 +0400 Subject: [CMake] Compile features --- CMakeLists.txt | 1 + source/test/programs/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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 $) 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 -- cgit v1.2.3