Commit 53e76c8f authored by Brad King's avatar Brad King
Browse files

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).
parent 34e1ac24
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
#elif defined(__PATHSCALE__) #elif defined(__PATHSCALE__)
# define COMPILER_ID "PathScale" # define COMPILER_ID "PathScale"
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
#elif defined(__GNUC__) #elif defined(__GNUC__)
# define COMPILER_ID "GNU" # define COMPILER_ID "GNU"
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
#elif defined(__PATHSCALE__) #elif defined(__PATHSCALE__)
# define COMPILER_ID "PathScale" # define COMPILER_ID "PathScale"
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
#elif defined(__GNUC__) #elif defined(__GNUC__)
# define COMPILER_ID "GNU" # define COMPILER_ID "GNU"
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
PRINT *, 'INFO:compiler[Intel]' PRINT *, 'INFO:compiler[Intel]'
#elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95) #elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95)
PRINT *, 'INFO:compiler[SunPro]' PRINT *, 'INFO:compiler[SunPro]'
#elif defined(_CRAYFTN)
PRINT *, 'INFO:compiler[Cray]'
#elif defined(__G95__) #elif defined(__G95__)
PRINT *, 'INFO:compiler[G95]' PRINT *, 'INFO:compiler[G95]'
#elif defined(__PATHSCALE__) #elif defined(__PATHSCALE__)
......
set(CMAKE_C_VERBOSE_FLAG "-v")
set(CMAKE_CXX_VERBOSE_FLAG "-v")
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
set(CMAKE_Fortran_MODOUT_FLAG -em)
set(CMAKE_Fortran_MODDIR_FLAG -J)
set(CMAKE_Fortran_MODDIR_DEFAULT .)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment