mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
Tests: Fix RunCMake.BuildDepends Fortran case with Intel compiler on Windows
The test regularly fails updating the `vc*.pdb` compiler-generated PDB file. Add the `/Z7` flag as the compiler suggests for this.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
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 "")
|
||||
|
||||
add_executable(preprocess FortranIncludePreprocess.F)
|
||||
|
||||
Reference in New Issue
Block a user