summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-Intel-Fortran.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-26 14:24:01 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-26 14:25:31 (GMT)
commitbd2ef44b55f39e253e52289b4f76596c7c9880eb (patch)
tree51a3234339dc7e7e89d48aa14b5c71fb088ecd47 /Modules/Platform/Windows-Intel-Fortran.cmake
parent12b9005d7c015b1f8cece5a9d8cf5f1a9f4a18fa (diff)
downloadCMake-bd2ef44b55f39e253e52289b4f76596c7c9880eb.zip
CMake-bd2ef44b55f39e253e52289b4f76596c7c9880eb.tar.gz
CMake-bd2ef44b55f39e253e52289b4f76596c7c9880eb.tar.bz2
Intel: Disable Fortran optimizations for Debug config on Windows (#15583)
The "/Od" flag is used for C and C++ languages in this configuration so we should use it for Fortran too. Suggested-by: Oleg V. Zhylin <ovz@yahoo.com>
Diffstat (limited to 'Modules/Platform/Windows-Intel-Fortran.cmake')
-rw-r--r--Modules/Platform/Windows-Intel-Fortran.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-Intel-Fortran.cmake b/Modules/Platform/Windows-Intel-Fortran.cmake
index 40523ff..0f9a10a 100644
--- a/Modules/Platform/Windows-Intel-Fortran.cmake
+++ b/Modules/Platform/Windows-Intel-Fortran.cmake
@@ -5,7 +5,7 @@ set(CMAKE_Fortran_MODDIR_FLAG "-module:")
set(CMAKE_Fortran_STANDARD_LIBRARIES_INIT "user32.lib")
__windows_compiler_intel(Fortran)
set (CMAKE_Fortran_FLAGS_INIT "/W1 /nologo /fpp /libs:dll /threads")
-set (CMAKE_Fortran_FLAGS_DEBUG_INIT "/debug:full /dbglibs")
+set (CMAKE_Fortran_FLAGS_DEBUG_INIT "/Od /debug:full /dbglibs")
set (CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "/O1 /D NDEBUG")
set (CMAKE_Fortran_FLAGS_RELEASE_INIT "/O2 /D NDEBUG")
set (CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "/O2 /debug:full /D NDEBUG")