include_directories(/usr/include/python2.7)\r
include_directories(../clang/include)\r
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../clang/include")\r
-set(CMAKE_CXX_FLAGS "-std=c++11")\r
+\r
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")\r
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7")\r
+ set(CMAKE_CXX_FLAGS "-std=c++0x")\r
+ else()\r
+ set(CMAKE_CXX_FLAGS "-std=c++11")\r
+ endif()\r
+else()\r
+ set(CMAKE_CXX_FLAGS "-std=c++11")\r
+endif()\r
\r
# Disable MSVC warnings\r
if( MSVC )\r