summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFortranCompilerId.F.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-16 14:33:06 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-16 14:33:06 (GMT)
commit58c73c43f62d581f62d694f5d144a021b9832284 (patch)
treefb7eec1e6a831116437668944bb9c4c92a5f904d /Modules/CMakeFortranCompilerId.F.in
parent3fb088e521584dfed27513faf556b8b0d6cc73d3 (diff)
downloadCMake-58c73c43f62d581f62d694f5d144a021b9832284.zip
CMake-58c73c43f62d581f62d694f5d144a021b9832284.tar.gz
CMake-58c73c43f62d581f62d694f5d144a021b9832284.tar.bz2
Detect Fortran target architecture on Windows
Commit 4430bccc (Change the way 32/64 bit compiles are detected with MSVC and intel, 2009-11-19) added detection of the target processor to C and CXX language builds with MS and Intel tools. Do the same for Intel Fortran for Windows (ifort). Use /machine:<arch> to link executables.
Diffstat (limited to 'Modules/CMakeFortranCompilerId.F.in')
-rw-r--r--Modules/CMakeFortranCompilerId.F.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in
index 4080cc1..8584731 100644
--- a/Modules/CMakeFortranCompilerId.F.in
+++ b/Modules/CMakeFortranCompilerId.F.in
@@ -109,4 +109,13 @@
# endif
PRINT *, 'INFO:platform[]'
#endif
+#if defined(_WIN32) && (defined(__INTEL_COMPILER) || defined(__ICC))
+# if defined(_M_IA64)
+ PRINT *, 'INFO:arch[IA64]'
+# elif defined(_M_X64) || defined(_M_AMD64)
+ PRINT *, 'INFO:arch[x64]'
+# elif defined(_M_IX86)
+ PRINT *, 'INFO:arch[X86]'
+# endif
+#endif
END