summaryrefslogtreecommitdiff
path: root/Modules/Platform/Windows-Intel-Fortran.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-16 09:50:05 -0500
committerBrad King <brad.king@kitware.com>2010-12-16 09:50:05 -0500
commitcd43636c95320ce39480c7c4c6cf909b86f2fc54 (patch)
tree4eeb04f59deed0aa7c012b52f72e7aca1182c2de /Modules/Platform/Windows-Intel-Fortran.cmake
parent58c73c43f62d581f62d694f5d144a021b9832284 (diff)
downloadcmake-cd43636c95320ce39480c7c4c6cf909b86f2fc54.tar.gz
Modernize Intel compiler info on Windows
This moves Intel compiler info on Windows into new-style modules Platform/Windows-Intel-<lang>.cmake using language-independent helper module Platform/Windows-Intel.cmake to define macros consolidating the information.
Diffstat (limited to 'Modules/Platform/Windows-Intel-Fortran.cmake')
-rw-r--r--Modules/Platform/Windows-Intel-Fortran.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Intel-Fortran.cmake b/Modules/Platform/Windows-Intel-Fortran.cmake
new file mode 100644
index 0000000000..c959287cdd
--- /dev/null
+++ b/Modules/Platform/Windows-Intel-Fortran.cmake
@@ -0,0 +1,11 @@
+include(Platform/Windows-Intel)
+set(CMAKE_BUILD_TYPE_INIT Debug)
+set(_COMPILE_Fortran " /fpp")
+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_MINSIZEREL_INIT "/O2 /D NDEBUG")
+SET (CMAKE_Fortran_FLAGS_RELEASE_INIT "/O1 /D NDEBUG")
+SET (CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "/O1 /debug:full /D NDEBUG")