Fix compilation on GCC

This commit is contained in:
Matt Williams
2010-05-24 20:12:09 +00:00
parent 7ffcd0c7ed
commit 7a3f3b2b28
3 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,10 @@ IF(WIN32)
#SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
ENDIF(WIN32)
IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW"
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
ENDIF()
ADD_SUBDIRECTORY(library)
OPTION(ENABLE_EXAMPLES "Should the examples be built" ON)