Skip to content

Commit

Permalink
Enable C++11 when compiling with clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Jul 14, 2015
1 parent 898851d commit 0172511
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(GCC 1)
add_definitions(-Wall)
set(CMAKE_CXX_FLAGS "-std=gnu++0x ${CMAKE_CXX_FLAGS}")
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_definitions(-Wall)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif()

option(DISABLE_SSE "Disable SSE optimizations")
Expand Down

0 comments on commit 0172511

Please sign in to comment.