diff options
author | Brad King <brad.king@kitware.com> | 2023-08-10 14:22:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-08-10 14:22:59 (GMT) |
commit | 70623f3bbfa80b6e2b20eeaeb0199a6e828ba41c (patch) | |
tree | 2e03288879eb6e151d7bf97f512c6b116d6961fc /Tests | |
parent | f6cda8676781786c5aa05b3a9838695b395b2ae8 (diff) | |
download | CMake-70623f3bbfa80b6e2b20eeaeb0199a6e828ba41c.zip CMake-70623f3bbfa80b6e2b20eeaeb0199a6e828ba41c.tar.gz CMake-70623f3bbfa80b6e2b20eeaeb0199a6e828ba41c.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/BuildDepends/FortranInclude.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/BuildDepends/FortranInclude.cmake b/Tests/RunCMake/BuildDepends/FortranInclude.cmake index fa9f399..ad5fd0a 100644 --- a/Tests/RunCMake/BuildDepends/FortranInclude.cmake +++ b/Tests/RunCMake/BuildDepends/FortranInclude.cmake @@ -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) |