Simplify -std=c++0x flag logic
This could be improved in CMake 3.1 by using CXX_STANDARD and CXX_STANDARD_REQUIRED (see http://stackoverflow.com/a/20165220/96704)
This commit is contained in:
parent
41d5ea6178
commit
09c15173f9
@ -33,12 +33,9 @@ MARK_AS_ADVANCED(FORCE POLYVOX_VERSION)
|
|||||||
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
|
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
include(FeatureSummary)
|
include(FeatureSummary)
|
||||||
|
|
||||||
IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW"
|
IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") #Maybe "OR MINGW"
|
||||||
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
|
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
|
||||||
ENDIF()
|
ENDIF()
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
||||||
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
|
|
||||||
endif()
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(include)
|
ADD_SUBDIRECTORY(include)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user