Browse Source

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).
pull/1/head
Brad King 15 years ago
parent
commit
53e76c8f12
  1. 3
      Modules/CMakeCCompilerId.c.in
  2. 3
      Modules/CMakeCXXCompilerId.cpp.in
  3. 2
      Modules/CMakeFortranCompilerId.F.in
  4. 1
      Modules/Compiler/Cray-C.cmake
  5. 1
      Modules/Compiler/Cray-CXX.cmake
  6. 4
      Modules/Compiler/Cray-Fortran.cmake

3
Modules/CMakeCCompilerId.c.in

@ -42,6 +42,9 @@
#elif defined(__PATHSCALE__)
# define COMPILER_ID "PathScale"
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
#elif defined(__GNUC__)
# define COMPILER_ID "GNU"

3
Modules/CMakeCXXCompilerId.cpp.in

@ -44,6 +44,9 @@
#elif defined(__PATHSCALE__)
# define COMPILER_ID "PathScale"
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
#elif defined(__GNUC__)
# define COMPILER_ID "GNU"

2
Modules/CMakeFortranCompilerId.F.in

@ -6,6 +6,8 @@
PRINT *, 'INFO:compiler[Intel]'
#elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95)
PRINT *, 'INFO:compiler[SunPro]'
#elif defined(_CRAYFTN)
PRINT *, 'INFO:compiler[Cray]'
#elif defined(__G95__)
PRINT *, 'INFO:compiler[G95]'
#elif defined(__PATHSCALE__)

1
Modules/Compiler/Cray-C.cmake

@ -0,0 +1 @@
set(CMAKE_C_VERBOSE_FLAG "-v")

1
Modules/Compiler/Cray-CXX.cmake

@ -0,0 +1 @@
set(CMAKE_CXX_VERBOSE_FLAG "-v")

4
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 .)
Loading…
Cancel
Save