diff options
author | Brad King <brad.king@kitware.com> | 2023-08-11 14:31:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-08-11 14:31:53 (GMT) |
commit | 7317e3b150ad070dc6b920fa78bec1c3a2e39280 (patch) | |
tree | 349603b561d35ccb63eb69efff415edab3521860 /Tests | |
parent | 68b9f9037c42dfce318a8c609d96ce957779a4c8 (diff) | |
parent | 70623f3bbfa80b6e2b20eeaeb0199a6e828ba41c (diff) | |
download | CMake-7317e3b150ad070dc6b920fa78bec1c3a2e39280.zip CMake-7317e3b150ad070dc6b920fa78bec1c3a2e39280.tar.gz CMake-7317e3b150ad070dc6b920fa78bec1c3a2e39280.tar.bz2 |
Merge topic 'test-ifort-windows'
70623f3bbf Tests: Fix RunCMake.BuildDepends Fortran case with Intel compiler on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8702
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) |