Skip to content
Snippets Groups Projects
Commit eee2a013 authored by Axel Naumann's avatar Axel Naumann
Browse files

From Pere: CMAKE_CXX_COMPILER_ID is an internal variable and is not defined...

From Pere: CMAKE_CXX_COMPILER_ID is an internal variable and is not defined for Windows. Fixes Savannah #94209


git-svn-id: http://root.cern.ch/svn/root/trunk@44083 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3c1ccb95
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ endif() ...@@ -13,7 +13,7 @@ endif()
#----Test if clang setup works---------------------------------------------------------------------- #----Test if clang setup works----------------------------------------------------------------------
if(${CMAKE_CXX_COMPILER_ID} STREQUAL Clang) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
exec_program(${CMAKE_C_COMPILER} ARGS "-v" OUTPUT_VARIABLE _clang_version_info) exec_program(${CMAKE_C_COMPILER} ARGS "-v" OUTPUT_VARIABLE _clang_version_info)
string(REGEX REPLACE "^.*[ ]([0-9]+)\\.[0-9].*$" "\\1" CLANG_MAJOR "${_clang_version_info}") string(REGEX REPLACE "^.*[ ]([0-9]+)\\.[0-9].*$" "\\1" CLANG_MAJOR "${_clang_version_info}")
string(REGEX REPLACE "^.*[ ][0-9]+\\.([0-9]).*$" "\\1" CLANG_MINOR "${_clang_version_info}") string(REGEX REPLACE "^.*[ ][0-9]+\\.([0-9]).*$" "\\1" CLANG_MINOR "${_clang_version_info}")
......
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