VS: Flag table for Intel Fortran missing some flags
Dear all,
I am trying to set some compiler and linker flags for Intel Fortran in Visual Studio 2017, the code is as follows:
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /check:bounds /recursive /traceback /Qinit:zero -Qinit:arrays /Qtrapuv /debug:full")
and
if (MSVC)
foreach (flag_var
CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS CMAKE_STATIC_LINKER_FLAGS
)
set(${flag_var} "${${flag_var}} /MAP /STACK:1000000000")
endforeach()
endif()
After generated the solution file, I opened the solution and found the flags
/recursive
/traceback
/debug:full
/MAP
are successfully setup, others are still unchanged.
I also attached the whole makefile, could anyone help me to take a look at it?
Thanks, Tang Laoya CMakeLists.txt
Edited by Brad King