feat(cpp): enable C++17 support (#1553)

This commit is contained in:
Francesco Borzì
2019-03-05 08:41:36 +01:00
committed by Nefertumm
parent 5348d9cbe5
commit e7ace60e59
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)
message(FATAL_ERROR "GCC: This project requires version ${GCC_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
message(STATUS "GCC: Enabled c++11 support")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
message(STATUS "GCC: Enabled c++17 support")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
message(STATUS "GCC: Enabled C99 support")