Permalink
Browse files

Fix warning about C++11 extensions on Clang

  • Loading branch information...
Mortal committed May 21, 2012
1 parent e1958ad commit 7a90dea1065292c666078971f24943d314cf1d8c
Showing with 4 additions and 0 deletions.
  1. +4 −0 CMakeLists.txt
View
@@ -13,6 +13,10 @@ if(NOT WIN32)
add_definitions("-Wall -Wextra")
endif(NOT WIN32)
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ add_definitions("-Wno-c++11-extensions")
+endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+
if(WIN32)
add_definitions("-DWIN32_LEAN_AND_MEAN")
endif(WIN32)

0 comments on commit 7a90dea

Please sign in to comment.