Commit 12720a5b authored by William R. Dieter's avatar William R. Dieter Committed by Brad King

Tests: Update MSVCRuntimeLibrary.Fortran test for IntelLLVM

`ifx` needs the same command line arguments as `ifort`.
Signed-off-by: William R. Dieter's avatarWilliam R. Dieter <william.r.dieter@intel.com>
parent d83df2af
......@@ -6,8 +6,9 @@ foreach(t MultiThreaded SingleThreaded)
foreach(dbg "" Debug)
foreach(dll "" DLL)
set(var "CMAKE_Fortran_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_${t}${dbg}${dll}")
if(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
# ifort does not actually define these, so inject them
if(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel"
OR CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM")
# ifort and ifx do not actually define these, so inject them
string(REPLACE "-threads" "-threads;-D_MT" "${var}" "${${var}}")
string(REPLACE "-dbglibs" "-dbglibs;-D_DEBUG" "${var}" "${${var}}")
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "Flang")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment