Commit 3f5fe061 authored by legoc's avatar legoc
Browse files

(split) Switched to C++17

parent 49d854c2
...@@ -14,7 +14,7 @@ endif() ...@@ -14,7 +14,7 @@ endif()
if(NOT DEFINED CMAKE_CXX_STANDARD) if(NOT DEFINED CMAKE_CXX_STANDARD)
# specify the C++ standard # specify the C++ standard
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_CXX_STANDARD_REQUIRED True)
endif() endif()
...@@ -31,15 +31,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) ...@@ -31,15 +31,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(ZeroMQ REQUIRED) find_package(ZeroMQ REQUIRED)
find_package(Rapidjson REQUIRED) find_package(Rapidjson REQUIRED)
#------------------------------------------------------------
# C++ version
#------------------------------------------------------------
#target_compile_features(cameo PUBLIC cxx_std_11)
# https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_CXX_EXTENSIONS OFF)
#------------------------------------------------------------ #------------------------------------------------------------
# Libraries # Libraries
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment