summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-17 18:31:45 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-19 14:26:28 (GMT)
commit0033faac1d5641c370646e089ca19cd527a8d842 (patch)
tree5c509291633cf092378667af4ce43697ff9a0197 /Modules
parent302d47b1fe19fb794800faa548d4cb9a8e89220a (diff)
downloadCMake-0033faac1d5641c370646e089ca19cd527a8d842.zip
CMake-0033faac1d5641c370646e089ca19cd527a8d842.tar.gz
CMake-0033faac1d5641c370646e089ca19cd527a8d842.tar.bz2
Fortran: Detect PGI compiler version
Port logic from the "Compiler/PGI-DetermineCompiler" module into "CMakeFortranCompilerId.F.in".
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFortranCompilerId.F.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in
index 4c172a8..98ec7f3 100644
--- a/Modules/CMakeFortranCompilerId.F.in
+++ b/Modules/CMakeFortranCompilerId.F.in
@@ -79,6 +79,11 @@
# endif
#elif defined(__PGI)
PRINT *, 'INFO:compiler[PGI]'
+# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
+# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
+# if defined(__PGIC_PATCHLEVEL__)
+# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
+# endif
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
PRINT *, 'INFO:compiler[MIPSpro]'
# if 0