Skip to content

Commit

Permalink
fixed clang detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Buote Xu authored and Buote Xu committed May 22, 2012
1 parent 3339e84 commit ec767a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ SET(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}")
MACRO_REQUIRE_OUT_OF_SRC_BUILD("LIBFBI requires out-of-source builds.")

# more warnings against everything
IF(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconversion -Wall -Wextra -Wno-unused-parameter" )
OPTION(USE_C++1X "Enable C++1x compilation (requires a compliant compiler)" ON)
IF (USE_C++1X)
SET(CMAKE_CXX0X_FLAGS "-std=c++0x" )
ENDIF (USE_C++1X)
ENDIF(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
ENDIF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX0X_FLAGS}" )

IF (NOT CMAKE_BUILD_TYPE)
Expand Down

0 comments on commit ec767a2

Please sign in to comment.