Upgrade to C++17 for now
This commit is contained in:
parent
11df9a6d1d
commit
f4c28ae722
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue