add c++-11 support for older CMAKE

This commit is contained in:
Isaac 2018-04-06 19:48:17 +02:00
parent 668c515b21
commit 6efffe62b8
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ if(NOT HOST_OS)
endif(NOT HOST_OS)
set (CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Default CLFAGS and CXXFLAGS:
set(CMAKE_C_FLAGS_RELEASE "-Wall -D__STDC_CONSTANT_MACROS -O2")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -D__STDC_CONSTANT_MACROS -O2")