Permalink
Browse files

Build system fix

Added in a section in the build system to attempt to make clang compile
with C++11 support
  • Loading branch information...
aelliott committed Jan 20, 2013
1 parent 0158057 commit e2f5c5a15860d3503b15e55ac64734e8283bb5c9
Showing with 6 additions and 0 deletions.
  1. +6 −0 CMakeLists.txt
View
@@ -68,6 +68,12 @@ if(CMAKE_COMPILER_IS_GNUCC)
endif(GCC_VERSION VERSION_GREATER 4.6 OR GCC_VERSION VERSION_EQUAL 4.6)
endif(CMAKE_COMPILER_IS_GNUCC)
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ # Unsure as to what versions would be safe here, but at least set the right
+ # flags for C++11 support
+ set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
+endif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+
SET(QT_MIN_VERSION "4.6.0")
#INCLUDE(FindQt4)

0 comments on commit e2f5c5a

Please sign in to comment.