ensure that cpu-specific -march options are always applied to icx
This commit is contained in:
parent
fdb88e010f
commit
21c0f769ef
|
@ -6,6 +6,7 @@ include(CheckCCompilerFlag)
|
||||||
|
|
||||||
if (${CMAKE_C_COMPILER_ID} MATCHES "IntelLLVM")
|
if (${CMAKE_C_COMPILER_ID} MATCHES "IntelLLVM")
|
||||||
set(CCOMMON_OPT "${CCOMMON_OPT} -fp-model=consistent")
|
set(CCOMMON_OPT "${CCOMMON_OPT} -fp-model=consistent")
|
||||||
|
set(GCC_VERSION 100)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "LSB" OR ${CMAKE_C_COMPILER_ID} MATCHES "Clang")
|
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "LSB" OR ${CMAKE_C_COMPILER_ID} MATCHES "Clang")
|
||||||
|
|
Loading…
Reference in New Issue