Permalink
Browse files

Changed compiler checks to be more clearly clang / gcc related

  • Loading branch information...
aelliott committed Jan 22, 2013
1 parent 3481c63 commit 9a5b5f63168ec104314b555ca16d35a23ac2d1bf
Showing with 3 additions and 3 deletions.
  1. +3 −3 CMakeLists.txt
View
@@ -231,11 +231,11 @@ if(NOT NO_CPP11)
LIST(APPEND expressioneditor_HPP_SRCS RegexModules/cpp11regex.hpp)
LIST(APPEND expressioneditor_CPP_SRCS RegexModules/cpp11regex.cpp)
# This needs to be made more cross-platform with compiler checks
- IF(APPLE)
+ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
LIST(APPEND CMAKE_CXX_FLAGS "-std=c++11" "-stdlib=libc++")
- ELSEIF(UNIX AND NOT APPLE)
+ elseif(CMAKE_COMPILER_IS_GNUCC)
LIST(APPEND CMAKE_CXX_FLAGS "--std=c++0x")
- ELSEIF(WIN32)
+ ELSEIF(MSVC)
# I believe this is enabled by default?
# TODO: check that
ENDIF()

0 comments on commit 9a5b5f6

Please sign in to comment.