summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-29 13:20:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-04-29 13:20:45 (GMT)
commitc4f8c823582aa207059ee43126ec88e678ac1284 (patch)
tree6326fdced11e8ecdcd59e459d58ff37ab08c1906 /Tests
parent83d8b358c2d8a58b2f8ef4912c466352227b18c9 (diff)
parent82470e24aebb1ab58e93cca89950d8f1dc02e92e (diff)
downloadCMake-c4f8c823582aa207059ee43126ec88e678ac1284.zip
CMake-c4f8c823582aa207059ee43126ec88e678ac1284.tar.gz
CMake-c4f8c823582aa207059ee43126ec88e678ac1284.tar.bz2
Merge topic 'test-ifort-windows'
82470e24ae Tests: Fix FortranOnly test with Intel compiler on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6058
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FortranOnly/CMakeLists.txt5
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)