diff options
author | William R. Dieter <william.r.dieter@intel.com> | 2021-01-22 00:50:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-28 14:07:01 (GMT) |
commit | 12720a5b71ebc6e9a800c126ad62857099588cc6 (patch) | |
tree | 885c46df863b5cad8676331454c6bb3dd99b09c8 /Tests/MSVCRuntimeLibrary | |
parent | d83df2af57d79ec2a38ce03b5ca08f21e137b717 (diff) | |
download | CMake-12720a5b71ebc6e9a800c126ad62857099588cc6.zip CMake-12720a5b71ebc6e9a800c126ad62857099588cc6.tar.gz CMake-12720a5b71ebc6e9a800c126ad62857099588cc6.tar.bz2 |
Tests: Update MSVCRuntimeLibrary.Fortran test for IntelLLVM
`ifx` needs the same command line arguments as `ifort`.
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Tests/MSVCRuntimeLibrary')
-rw-r--r-- | Tests/MSVCRuntimeLibrary/Fortran/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/MSVCRuntimeLibrary/Fortran/CMakeLists.txt b/Tests/MSVCRuntimeLibrary/Fortran/CMakeLists.txt index 27838a4..41bd6f5 100644 --- a/Tests/MSVCRuntimeLibrary/Fortran/CMakeLists.txt +++ b/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") |