bump to the C++17 standard in the build system (#7180)

This commit is contained in:
Xavier Valls 2021-11-29 10:57:59 +01:00 committed by GitHub
parent 606096278b
commit d8c62f8eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,8 +311,8 @@ if(UNIX AND NOT APPLE)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,relro,-z,now") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,relro,-z,now")
endif() endif()
add_gcc_compiler_cflags("-std=c99") set(CMAKE_C_STANDARD 99)
add_gcc_compiler_cxxflags("-std=c++11") set(CMAKE_CXX_STANDARD 17)
check_add_gcc_compiler_flag("-fsized-deallocation" CXX) check_add_gcc_compiler_flag("-fsized-deallocation" CXX)