Forráskód Böngészése

Merge topic 'test-ifort-windows'

70623f3bbf Tests: Fix RunCMake.BuildDepends Fortran case with Intel compiler on Windows

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8702
Brad King 2 éve
szülő
commit
7317e3b150
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      Tests/RunCMake/BuildDepends/FortranInclude.cmake

+ 5 - 0
Tests/RunCMake/BuildDepends/FortranInclude.cmake

@@ -1,5 +1,10 @@
 enable_language(Fortran)
 enable_language(Fortran)
 
 
+if("${CMAKE_Fortran_COMPILER_ID};${CMAKE_Fortran_SIMULATE_ID}" MATCHES "^Intel(LLVM)?;MSVC$")
+  string(APPEND CMAKE_Fortran_FLAGS_DEBUG " -Z7")
+  string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO " -Z7")
+endif()
+
 set(check_pairs "")
 set(check_pairs "")
 
 
 add_executable(preprocess FortranIncludePreprocess.F)
 add_executable(preprocess FortranIncludePreprocess.F)