Upgrade to C++17 for now

This commit is contained in:
Sameer Rahmani 2021-04-11 18:36:00 +01:00
parent 11df9a6d1d
commit f4c28ae722
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
if (CPP_20_SUPPORT)
set(CMAKE_CXX_STANDARD 20)
else()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
endif()
set(CMAKE_CXX_STANDARD_REQUIRED True)

View File

@ -5,7 +5,7 @@ add_dependencies(serenec SereneDialectGen)
if (CPP_20_SUPPORT)
target_compile_features(serenec PRIVATE cxx_std_20)
else()
target_compile_features(serenec PRIVATE cxx_std_14)
target_compile_features(serenec PRIVATE cxx_std_17)
endif()

View File

@ -67,7 +67,7 @@ add_dependencies(serene SereneDialectGen)
if (CPP_20_SUPPORT)
target_compile_features(serene PUBLIC cxx_std_20)
else()
target_compile_features(serene PUBLIC cxx_std_14)
target_compile_features(serene PUBLIC cxx_std_17)
endif()

View File

@ -6,7 +6,7 @@ add_executable(tests serenetests.cpp)
add_dependencies(tests SereneDialectGen)
add_dependencies(tests serene)
target_compile_features(tests PRIVATE cxx_std_14)
target_compile_features(tests PRIVATE cxx_std_17)
# Should be linked to the main library, as well as the Catch2 testing library
target_link_libraries(tests PUBLIC serene Catch2::Catch2)