| --- codelite/CMakeLists.txt.orig 2015-03-11 00:04:27.169200000 +0300 |
| +++ codelite/CMakeLists.txt 2015-03-11 00:05:10.755600000 +0300 |
| @@ -218,7 +218,11 @@ |
| |
| add_definitions(-DYY_NEVER_INTERACTIVE=1) |
| add_definitions(-DwxUSE_GUI=1) |
| -set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) |
| +if(CMAKE_COMPILER_IS_GNUCXX) |
| + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11" ) |
| +else() |
| + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" ) |
| +endif() |
| |
| if (NOT MINGW) |
| add_definitions(-DINSTALL_DIR=\"${CL_PREFIX}/share/codelite\") |