VS generator skips /Z7 flag for Intel Fortran projects
Hi,
I have been unable to make CMake set the /Z7
flag to Intel Fortran projects in Visual Studio.
For example:
cmake_minimum_required(VERSION 3.8)
project(test Fortran)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /Z7 /MP /abcd")
add_executable(test test.F90)
All (dummy) flags are passed correcty, but /Z7
is missing.
When using a C++ project, passing /Z7
works as expected.
I am using VS2017, Intel Fortran 2019 and CMake 3.18.4. Do you have any idea? Thanks and kind regards.