cmake: Enable c++11 for all targets

This commit is contained in:
Fabio Bas 2016-03-21 11:42:38 +01:00
parent 18993b397b
commit a55b3784eb
4 changed files with 3 additions and 6 deletions

View file

@ -37,6 +37,9 @@ ENDIF()
# A project name is needed for CPack
PROJECT("${PROJECT_NAME}")
# Use c++11 for all targets
set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ ISO Standard")
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Set conventional loops
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)