Browse Source

Tests: Update MSVCRuntimeLibrary.Fortran test for IntelLLVM

`ifx` needs the same command line arguments as `ifort`.

Signed-off-by: William R. Dieter <[email protected]>
William R. Dieter 4 years ago
parent
commit
12720a5b71
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Tests/MSVCRuntimeLibrary/Fortran/CMakeLists.txt

+ 3 - 2
Tests/MSVCRuntimeLibrary/Fortran/CMakeLists.txt

@@ -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")