diff options
author | Brad King <brad.king@kitware.com> | 2015-02-17 18:27:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-19 14:26:27 (GMT) |
commit | aa77b631d9fc94e7ba69929560d4592e1ab12a04 (patch) | |
tree | 0b6d6fed4622d46d9c0993dea83b1b2bb6152bcb /Modules/CMakeFortranCompilerId.F.in | |
parent | 2e09c4230f601ef5d744a2e43643e214a149ba39 (diff) | |
download | CMake-aa77b631d9fc94e7ba69929560d4592e1ab12a04.zip CMake-aa77b631d9fc94e7ba69929560d4592e1ab12a04.tar.gz CMake-aa77b631d9fc94e7ba69929560d4592e1ab12a04.tar.bz2 |
Fortran: Detect SunPro compiler version
Port logic from "Compiler/SunPro-*DetermineCompiler" modules into
"CMakeFortranCompilerId.F.in".
Diffstat (limited to 'Modules/CMakeFortranCompilerId.F.in')
-rw-r--r-- | Modules/CMakeFortranCompilerId.F.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in index 956576d..5e8f646 100644 --- a/Modules/CMakeFortranCompilerId.F.in +++ b/Modules/CMakeFortranCompilerId.F.in @@ -33,8 +33,16 @@ PRINT *, 'INFO:simulate_version[013.00]' # endif # endif -#elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95) +#elif defined(__SUNPRO_F95) PRINT *, 'INFO:compiler[SunPro]' +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_F95>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_F95>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F95 & 0xF) +#elif defined(__SUNPRO_F90) + PRINT *, 'INFO:compiler[SunPro]' +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_F90>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_F90>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90 & 0xF) #elif defined(_CRAYFTN) PRINT *, 'INFO:compiler[Cray]' #elif defined(__G95__) |