From 173c1f5f7d2cdd9528e82af4213460f8b020aa19 Mon Sep 17 00:00:00 2001 From: pantor Date: Wed, 10 Nov 2021 12:17:26 +0100 Subject: [PATCH] fix C++17 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01aa01f..772c9e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ target_include_directories(inja INTERFACE $ $ ) -target_compile_features(inja INTERFACE cxx_std_11) +target_compile_features(inja INTERFACE cxx_std_17) if(INJA_USE_EMBEDDED_JSON) @@ -47,7 +47,7 @@ if(INJA_USE_EMBEDDED_JSON) $ ) - target_compile_features(nlohmann_json INTERFACE cxx_std_11) + target_compile_features(nlohmann_json INTERFACE cxx_std_17) install(TARGETS nlohmann_json EXPORT injaTargets) @@ -87,7 +87,7 @@ if(BUILD_TESTING AND INJA_BUILD_TESTS) add_library(single_inja INTERFACE) - target_compile_features(single_inja INTERFACE cxx_std_11) + target_compile_features(single_inja INTERFACE cxx_std_17) target_include_directories(single_inja INTERFACE single_include include third_party/include) add_executable(single_inja_test test/test.cpp)