f9dbe22ca2
Refactor options out of `Modules/Compiler/Intel-{ASM,C,CXX,Fortran}.cmake` into a common helper in `Modules/Compiler/Intel.cmake`. Condition them to be used only on non-Windows hosts where the Intel compiler is GNU-like instead of MSVC-like. Previously this worked only because the options were later overridden by `Modules/Platform/Windows-Intel*.cmake`, but it is cleaner to not set the options in the first place.
13 lines
338 B
CMake
13 lines
338 B
CMake
include(Compiler/Intel)
|
|
__compiler_intel(ASM)
|
|
|
|
string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
|
string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -DNDEBUG")
|
|
string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -DNDEBUG")
|
|
|
|
if(UNIX)
|
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;S)
|
|
else()
|
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm)
|
|
endif()
|