Support clang 10.0 (appleclang) and higher (#4302)
This commit is contained in:
parent
2010a2b700
commit
6c3dd41717
@ -26,7 +26,7 @@ macro(get_clang_version)
|
|||||||
execute_process(
|
execute_process(
|
||||||
COMMAND "${CMAKE_CXX_COMPILER}" "--version"
|
COMMAND "${CMAKE_CXX_COMPILER}" "--version"
|
||||||
OUTPUT_VARIABLE CLANG_VERSION_OUTPUT)
|
OUTPUT_VARIABLE CLANG_VERSION_OUTPUT)
|
||||||
string(REGEX MATCH "version ([0-9]\\.[0-9])" x ${CLANG_VERSION_OUTPUT})
|
string(REGEX MATCH "version ([0-9]+\\.[0-9]+)" x ${CLANG_VERSION_OUTPUT})
|
||||||
set(CLANG_VERSION ${CMAKE_MATCH_1})
|
set(CLANG_VERSION ${CMAKE_MATCH_1})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user