summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCXXCompilerId.cpp.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-22 14:15:40 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-22 14:17:01 (GMT)
commit74c57d99b4328c18b533d76e7f009e7daddc04df (patch)
tree6acfbc8883abb56fa76a3b56c1ccebb225acd033 /Modules/CMakeCXXCompilerId.cpp.in
parent707aefd853d1fec2960058e2e921e5d24c736526 (diff)
downloadCMake-74c57d99b4328c18b533d76e7f009e7daddc04df.zip
CMake-74c57d99b4328c18b533d76e7f009e7daddc04df.tar.gz
CMake-74c57d99b4328c18b533d76e7f009e7daddc04df.tar.bz2
Detect PathScale compiler version with its id
Decode decimal digits from __PATHCC__ __PATHCC_MINOR__ __PATHCC_PATCHLEVEL__ to compute version number components. See documentation at: http://www.pathscale.com/docs/UserGuide.pdf http://sourceforge.net/p/predef/wiki/Compilers/#ekopathhttpenwikipediaorgwikipathscale
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r--Modules/CMakeCXXCompilerId.cpp.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in
index 47cd45c..80e6d19 100644
--- a/Modules/CMakeCXXCompilerId.cpp.in
+++ b/Modules/CMakeCXXCompilerId.cpp.in
@@ -97,8 +97,13 @@
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
-#elif defined(__PATHSCALE__)
+#elif defined(__PATHCC__)
# define COMPILER_ID "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(_CRAYC)
# define COMPILER_ID "Cray"