summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFortranCompilerId.F.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-17 18:28:45 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-19 14:26:27 (GMT)
commit49562a77f7223befa21a5b72625dc10f807ce788 (patch)
treea8ec48b4df0c1f08bb228d5ad93b2cea2c5cc3eb /Modules/CMakeFortranCompilerId.F.in
parentaa77b631d9fc94e7ba69929560d4592e1ab12a04 (diff)
downloadCMake-49562a77f7223befa21a5b72625dc10f807ce788.zip
CMake-49562a77f7223befa21a5b72625dc10f807ce788.tar.gz
CMake-49562a77f7223befa21a5b72625dc10f807ce788.tar.bz2
Fortran: Detect PathScale compiler version
Port logic from the "Compiler/PathScale-DetermineCompiler" module into "CMakeFortranCompilerId.F.in".
Diffstat (limited to 'Modules/CMakeFortranCompilerId.F.in')
-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 5e8f646..fcffaa2 100644
--- a/Modules/CMakeFortranCompilerId.F.in
+++ b/Modules/CMakeFortranCompilerId.F.in
@@ -49,6 +49,11 @@
PRINT *, 'INFO:compiler[G95]'
#elif defined(__PATHSCALE__)
PRINT *, 'INFO:compiler[PathScale]'
+# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
+# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
+# if defined(__PATHCC_PATCHLEVEL__)
+# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
+# endif
#elif defined(__ABSOFT__)
PRINT *, 'INFO:compiler[Absoft]'
#elif defined(__GNUC__)