diff options
author | Brad King <brad.king@kitware.com> | 2021-04-28 13:32:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-28 13:55:42 (GMT) |
commit | 82470e24aebb1ab58e93cca89950d8f1dc02e92e (patch) | |
tree | d78fe4c490117921e34f5466c0a17a308c881164 /Tests/FortranOnly | |
parent | 49c6d0f26199c252b493ed5f816dbcb2e9701112 (diff) | |
download | CMake-82470e24aebb1ab58e93cca89950d8f1dc02e92e.zip CMake-82470e24aebb1ab58e93cca89950d8f1dc02e92e.tar.gz CMake-82470e24aebb1ab58e93cca89950d8f1dc02e92e.tar.bz2 |
Tests: Fix FortranOnly test 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/FortranOnly')
-rw-r--r-- | Tests/FortranOnly/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/FortranOnly/CMakeLists.txt b/Tests/FortranOnly/CMakeLists.txt index cdf8ed6..ee47da4 100644 --- a/Tests/FortranOnly/CMakeLists.txt +++ b/Tests/FortranOnly/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8.12) project(FortranOnly Fortran) message("CTEST_FULL_OUTPUT ") +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() + # create a library with hello and world functions add_library(FortranOnlylib hello.f world.f) set_property(TARGET FortranOnlylib PROPERTY Fortran_FORMAT FIXED) |