diff options
author | Tom Clune <tom.clue@nasa.gov> | 2017-05-01 13:37:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-05-05 15:08:37 (GMT) |
commit | d47190ba4694dbd64decf50bedc75a86cae9c65e (patch) | |
tree | be227983ab29a9888dab133d5d4043bf86a11a5b /Modules/CMakeFortranCompilerId.F.in | |
parent | d52a4256b2e75aace7d4a7dd160aa1be89083d28 (diff) | |
download | CMake-d47190ba4694dbd64decf50bedc75a86cae9c65e.zip CMake-d47190ba4694dbd64decf50bedc75a86cae9c65e.tar.gz CMake-d47190ba4694dbd64decf50bedc75a86cae9c65e.tar.bz2 |
NAG: Detect compiler version of NAG Fortran
Fixes: #16817
Diffstat (limited to 'Modules/CMakeFortranCompilerId.F.in')
-rw-r--r-- | Modules/CMakeFortranCompilerId.F.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in index 67cda3b..26b2ed6 100644 --- a/Modules/CMakeFortranCompilerId.F.in +++ b/Modules/CMakeFortranCompilerId.F.in @@ -103,6 +103,11 @@ PRINT *, 'INFO:compiler[MIPSpro]' #elif defined(__hpux) || defined(__hpux__) PRINT *, 'INFO:compiler[HP]' +#elif defined(NAGFOR) + PRINT *, 'INFO:compiler[NAG]' +#define COMPILER_VERSION_MAJOR DEC(__NAG_COMPILER_RELEASE/10) +#define COMPILER_VERSION_MINOR DEC(__NAG_COMPILER_RELEASE % 10) +#define COMPILER_VERSION_PATCH DEC(__NAG_COMPILER_BUILD) #elif 1 # if 0 ! The above 'elif 1' instead of 'else' is to work around a bug in the |