summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Cray-Fortran.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-11-12 14:12:08 (GMT)
committerBrad King <brad.king@kitware.com>2010-11-12 14:12:08 (GMT)
commit53e76c8f126fd2480c560cf2bb46a93eabbc91fa (patch)
treec275a3c1f9995e5c76ae234b4f8e74a3a29897b1 /Modules/Compiler/Cray-Fortran.cmake
parent34e1ac2489778a854c3ffaa9c141a9a70416a47e (diff)
downloadCMake-53e76c8f126fd2480c560cf2bb46a93eabbc91fa.zip
CMake-53e76c8f126fd2480c560cf2bb46a93eabbc91fa.tar.gz
CMake-53e76c8f126fd2480c560cf2bb46a93eabbc91fa.tar.bz2
Teach CMake about Cray C, C++, and Fortran compilers
The Cray Fortran compiler needs "-em" to enable module output and also "-J." to place the .mod files in the current working directory (instead of next to the .o file).
Diffstat (limited to 'Modules/Compiler/Cray-Fortran.cmake')
-rw-r--r--Modules/Compiler/Cray-Fortran.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/Cray-Fortran.cmake b/Modules/Compiler/Cray-Fortran.cmake
new file mode 100644
index 0000000..4f45176
--- /dev/null
+++ b/Modules/Compiler/Cray-Fortran.cmake
@@ -0,0 +1,4 @@
+set(CMAKE_Fortran_VERBOSE_FLAG "-v")
+set(CMAKE_Fortran_MODOUT_FLAG -em)
+set(CMAKE_Fortran_MODDIR_FLAG -J)
+set(CMAKE_Fortran_MODDIR_DEFAULT .)