diff options
author | Brad King <brad.king@kitware.com> | 2021-03-10 16:23:19 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-10 16:23:23 (GMT) |
commit | fb40808b76a72a1783a2d179fde4b60da8a4a3d5 (patch) | |
tree | 5d712993102a45d208c70a5d3d406a7f6c3f5a24 | |
parent | dad1732e4575ad8c147983e4564c5ccad6a93f55 (diff) | |
parent | 7b0ab0439d58b72617e6cbcb9d357a388da83f2b (diff) | |
download | CMake-fb40808b76a72a1783a2d179fde4b60da8a4a3d5.zip CMake-fb40808b76a72a1783a2d179fde4b60da8a4a3d5.tar.gz CMake-fb40808b76a72a1783a2d179fde4b60da8a4a3d5.tar.bz2 |
Merge topic 'test-ifort-windows'
7b0ab0439d Tests: Fix FortranModules test with Intel compiler on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5894
-rw-r--r-- | Tests/FortranModules/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/FortranModules/CMakeLists.txt b/Tests/FortranModules/CMakeLists.txt index b7a6f68..94f5939 100644 --- a/Tests/FortranModules/CMakeLists.txt +++ b/Tests/FortranModules/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required (VERSION 3.9) project(FortranModules 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() + if(NOT DEFINED CMake_TEST_NESTED_MAKE_PROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio") set(CMake_TEST_NESTED_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM}") endif() |