From c13dff8eb3250a28c2407c2d6f38763988b7019f Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 30 Oct 2022 16:17:48 +0100 Subject: [PATCH] add some more c++17 --- framework/engine/CMakeLists.txt | 2 ++ framework/std_utils/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/framework/engine/CMakeLists.txt b/framework/engine/CMakeLists.txt index 91c3e08..16b751d 100644 --- a/framework/engine/CMakeLists.txt +++ b/framework/engine/CMakeLists.txt @@ -24,6 +24,8 @@ add_library(engine target_include_directories(engine PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") +target_compile_features(engine PUBLIC cxx_std_17) + target_link_libraries(engine tracy_client logger diff --git a/framework/std_utils/CMakeLists.txt b/framework/std_utils/CMakeLists.txt index 0f00c2f..8fd537c 100644 --- a/framework/std_utils/CMakeLists.txt +++ b/framework/std_utils/CMakeLists.txt @@ -6,6 +6,8 @@ add_library(std_utils INTERFACE) target_include_directories(std_utils INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src") +target_compile_features(std_utils INTERFACE cxx_std_17) + ############################## # curr only scalar_range @@ -13,6 +15,8 @@ add_library(std_utils_serialize INTERFACE) target_include_directories(std_utils_serialize INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src") +target_compile_features(std_utils_serialize INTERFACE cxx_std_17) + target_link_libraries(std_utils_serialize INTERFACE nlohmann_json::nlohmann_json )