summaryrefslogtreecommitdiffhomepage
path: root/cmake/linux.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-01 10:28:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-01 10:28:08 +0200
commit2a152dfcca73a848a5a965d0e97b762d9fb725bb (patch)
treea0fc1e879d6b17899dbaa837f6dfad1146252e44 /cmake/linux.cmake
parentb8f8814cf98486bb17c4b15401a02bc47383e2b4 (diff)
cmake: switch to c++14
We need std::begin/end return constant iterators for const sequences.
Diffstat (limited to 'cmake/linux.cmake')
-rw-r--r--cmake/linux.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/linux.cmake b/cmake/linux.cmake
index a1083db5..520db1a9 100644
--- a/cmake/linux.cmake
+++ b/cmake/linux.cmake
@@ -1,6 +1,6 @@
set(CMAKE_BUILD_TYPE_INIT RELEASE)
-set(CMAKE_CXX_FLAGS "-std=c++11 -fPIC" CACHE STRING "" FORCE)
+set(CMAKE_CXX_FLAGS "-std=c++14 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS "-fPIC" CACHE STRING "" FORCE)
set(CMAKE_AR "gcc-ar" CACHE STRING "" FORCE)
@@ -10,7 +10,7 @@ set(CMAKE_RANLIB "gcc-ranlib" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O3 -flto -fuse-linker-plugin -fvisibility=hidden -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_C_FLAGS_RELEASE} " CACHE STRING "" FORCE)
-set(cmake-link-common "-std=c++11")
+set(cmake-link-common "-std=c++14")
set(CMAKE_EXE_LINKER_FLAGS "${cmake-link-common}" CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS ${cmake-link-common} CACHE STRING "" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS ${cmake-link-common} CACHE STRING "" FORCE)