Commit d9c68cbb authored by Patrik Huber's avatar Patrik Huber

Changed gcc/clang flag from c++11 to c++14

parent a44e8625
...@@ -9,9 +9,9 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) ...@@ -9,9 +9,9 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# g++ needs a compiler flag to enable C++11 support # g++ needs a compiler flag to enable C++11 support
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-std=c++11 HAS_CXX11_FLAG) check_cxx_compiler_flag(-std=c++14 HAS_CXX14_FLAG)
if (HAS_CXX11_FLAG) if (HAS_CXX14_FLAG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif() endif()
# All the options for building the library. Can be changed on the command-line or in initial_cache.cmake. # All the options for building the library. Can be changed on the command-line or in initial_cache.cmake.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment