From 53e76c8f126fd2480c560cf2bb46a93eabbc91fa Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 12 Nov 2010 09:12:08 -0500 Subject: 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). --- Modules/Compiler/Cray-Fortran.cmake | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Modules/Compiler/Cray-Fortran.cmake (limited to 'Modules/Compiler/Cray-Fortran.cmake') diff --git a/Modules/Compiler/Cray-Fortran.cmake b/Modules/Compiler/Cray-Fortran.cmake new file mode 100644 index 0000000000..4f45176d22 --- /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 .) -- cgit v1.2.1