Mattia Verga 4f66b0e
diff -U 3 -dHrN -- a/cmake_modules/compiler_options.cmake b/cmake_modules/compiler_options.cmake
Mattia Verga 4f66b0e
--- a/cmake_modules/compiler_options.cmake	2017-09-26 00:21:15.000000000 +0200
Mattia Verga 4f66b0e
+++ b/cmake_modules/compiler_options.cmake	2017-11-05 08:22:16.662695768 +0100
Mattia Verga 4f66b0e
@@ -64,10 +64,13 @@
Mattia Verga 4f66b0e
   #set(CMAKE_LIBRARY_ARCHITECTURE x86)
Mattia Verga 4f66b0e
 else()
Mattia Verga 4f66b0e
   # c++11 options
Mattia Verga 4f66b0e
+  check_cxx_compiler_flag(-std=c++14 HAS_CXX14_FLAG)
Mattia Verga 4f66b0e
   check_cxx_compiler_flag(-std=c++11 HAS_CXX11_FLAG)
Mattia Verga 4f66b0e
   check_cxx_compiler_flag(-std=c++0x HAS_CXX0X_FLAG)
Mattia Verga 4f66b0e
 
Mattia Verga 4f66b0e
-  if(HAS_CXX11_FLAG)
Mattia Verga 4f66b0e
+  if(HAS_CXX14_FLAG)
Mattia Verga 4f66b0e
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
Mattia Verga 4f66b0e
+  elseif(HAS_CXX11_FLAG)
Mattia Verga 4f66b0e
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
Mattia Verga 4f66b0e
   elseif(HAS_CXX0X_FLAG)
Mattia Verga 4f66b0e
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")