Move to VS 2010.
Update to Ogre SDK 1.7.1 Removed support for compilers which don't adhere to C++0X
This commit is contained in:
@ -7,22 +7,6 @@ SET(POLYVOX_VERSION_MINOR "1")
|
||||
SET(POLYVOX_VERSION_PATCH "0")
|
||||
SET(POLYVOX_VERSION "${POLYVOX_VERSION_MAJOR}.${POLYVOX_VERSION_MINOR}.${POLYVOX_VERSION_PATCH}")
|
||||
|
||||
OPTION(ENABLE_CPP0X "Does the compiler support C++0x" ON) #Disable with -DENABLE_CPP0X=OFF or in the GUI
|
||||
IF(ENABLE_CPP0X)
|
||||
INCLUDE(CheckCXXCompilerFlag)
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW"
|
||||
CHECK_CXX_COMPILER_FLAG(-std=c++0x COMPILER_CPP0X_SUPPORTED) #Check if flag is supported...
|
||||
IF(COMPILER_CPP0X_SUPPORTED)
|
||||
ADD_DEFINITIONS(-DC_PLUS_PLUS_ZERO_X_SUPPORTED -std=c++0x) #...if so, add it...
|
||||
ELSE(COMPILER_CPP0X_SUPPORTED)
|
||||
SET(ENABLE_CPP0X OFF) #...if not, disable C++0x mode.
|
||||
MESSAGE(STATUS "Your version of GCC does not support the -std=c++0x flag. C++0x mode is disabled.")
|
||||
ENDIF(COMPILER_CPP0X_SUPPORTED)
|
||||
ELSEIF(MSYS)
|
||||
#ADD_DEFINITIONS(-DC_PLUS_PLUS_ZERO_X_SUPPORTED)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
FIND_PACKAGE(Doxygen)
|
||||
|
||||
IF(WIN32)
|
||||
@ -57,7 +41,6 @@ ENDIF(BUILD_TESTING)
|
||||
MESSAGE(STATUS "")
|
||||
MESSAGE(STATUS "Summary")
|
||||
MESSAGE(STATUS "-------")
|
||||
MESSAGE(STATUS "C++0x mode: " ${ENABLE_CPP0X})
|
||||
MESSAGE(STATUS "Build examples: " ${ENABLE_EXAMPLES})
|
||||
MESSAGE(STATUS "Build tests: " ${BUILD_TESTING})
|
||||
MESSAGE(STATUS "API Docs available: " ${DOXYGEN_FOUND})
|
||||
|
Reference in New Issue
Block a user