Enable C++20 in CMake (needed since InfiniTime is switch to C++20 as well). (#129)
This commit is contained in:
parent
fc8077add8
commit
1f33754c1a
|
@ -20,7 +20,7 @@ project(InfiniSim VERSION ${PROJECT_VERSION} LANGUAGES C CXX)
|
||||||
# https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
|
# https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
|
||||||
string(COMPARE EQUAL "${CMAKE_CXX_STANDARD}" "" no_cmake_cxx_standard_set)
|
string(COMPARE EQUAL "${CMAKE_CXX_STANDARD}" "" no_cmake_cxx_standard_set)
|
||||||
if(no_cmake_cxx_standard_set)
|
if(no_cmake_cxx_standard_set)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
message(STATUS "Using default C++ standard ${CMAKE_CXX_STANDARD}")
|
message(STATUS "Using default C++ standard ${CMAKE_CXX_STANDARD}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user