mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-15 19:55:47 +00:00
Use MATCHES when looking for Clang in CMAKE_CXX_COMPILER_ID
This commit is contained in:
parent
52a4dbcdc5
commit
e8032d52f9
@ -213,7 +213,7 @@ if(CPU_IS_x86)
|
|||||||
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||||
|
|
||||||
# Disable SSE4a if Clang is less than version 3.2
|
# Disable SSE4a if Clang is less than version 3.2
|
||||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||||
# Figure out the version of Clang
|
# Figure out the version of Clang
|
||||||
if(CMAKE_VERSION VERSION_LESS "2.8.10")
|
if(CMAKE_VERSION VERSION_LESS "2.8.10")
|
||||||
# Exctract the Clang version from the --version string.
|
# Exctract the Clang version from the --version string.
|
||||||
@ -227,7 +227,7 @@ if(CPU_IS_x86)
|
|||||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS "3.2")
|
if(CMAKE_C_COMPILER_VERSION VERSION_LESS "3.2")
|
||||||
OVERRULE_ARCH(sse4_a "Clang >= 3.2 required for SSE4a")
|
OVERRULE_ARCH(sse4_a "Clang >= 3.2 required for SSE4a")
|
||||||
endif(CMAKE_C_COMPILER_VERSION VERSION_LESS "3.2")
|
endif(CMAKE_C_COMPILER_VERSION VERSION_LESS "3.2")
|
||||||
endif("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
endif("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||||
|
|
||||||
endif(CPU_IS_x86)
|
endif(CPU_IS_x86)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user