summaryrefslogtreecommitdiff
path: root/src/cmake/compiler/gcc
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2019-09-02 08:54:10 +0200
committerKargatum <dowlandtop@yandex.com>2019-09-02 13:54:10 +0700
commit3a43e8c415cee4041f2a59e9ebc8af721a49be23 (patch)
tree7fab232fa852d0f0e3709d24d447d6271955da2c /src/cmake/compiler/gcc
parentcae91f1650c080458f8edbd5cb6fd6b638215e0a (diff)
feat(Core): enable C++17 (#2234)
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
Diffstat (limited to 'src/cmake/compiler/gcc')
-rw-r--r--src/cmake/compiler/gcc/settings.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmake/compiler/gcc/settings.cmake b/src/cmake/compiler/gcc/settings.cmake
index 18bc452bdc..645999dcc4 100644
--- a/src/cmake/compiler/gcc/settings.cmake
+++ b/src/cmake/compiler/gcc/settings.cmake
@@ -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++14")
-message(STATUS "GCC: Enabled c++14 support")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
+message(STATUS "GCC: Enabled c++17 support")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
message(STATUS "GCC: Enabled C99 support")