Skip to content
Snippets Groups Projects
Commit fe70a1b2 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

use CMAKE_CXX_COMPILER_VERSION to get clang version

parent 1868f42d
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ IF(COMPILER_IS_GCC)
ENDIF() # COMPILER_IS_GCC
IF(COMPILER_IS_CLANG)
IF(CLANG_VERSION_STRING VERSION_LESS "3.3")
MESSAGE(FATAL_ERROR "Aborting: Clang 3.3 is requiered! Found version ${CLANG_VERSION_STRING}")
IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.3")
MESSAGE(FATAL_ERROR "Aborting: Clang 3.3 is required! Found version ${CMAKE_CXX_COMPILER_VERSION}")
ENDIF()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -isystem ${CMAKE_SOURCE_DIR}/ThirdParty/ -Weverything -Wno-c++98-compat-pedantic")
ENDIF() # COMPILER_IS_CLANG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment