mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
Cray: Implement Fortran compiler version detection (#15845)
We already recognize the Cray Fortran compiler id. Extract the version number using the same predefined macros we already use for Cray C and C++ compilers.
This commit is contained in:
@@ -45,6 +45,8 @@
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90 & 0xF)
|
||||
#elif defined(_CRAYFTN)
|
||||
PRINT *, 'INFO:compiler[Cray]'
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
#elif defined(__G95__)
|
||||
PRINT *, 'INFO:compiler[G95]'
|
||||
# define COMPILER_VERSION_MAJOR DEC(__G95__)
|
||||
|
||||
Reference in New Issue
Block a user