summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-10 14:22:59 (GMT)
committerBrad King <brad.king@kitware.com>2023-08-10 14:22:59 (GMT)
commit70623f3bbfa80b6e2b20eeaeb0199a6e828ba41c (patch)
tree2e03288879eb6e151d7bf97f512c6b116d6961fc /Tests
parentf6cda8676781786c5aa05b3a9838695b395b2ae8 (diff)
downloadCMake-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.cmake5
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)