summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompilerId.c.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/CMakeCCompilerId.c.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/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index 7771dbf..8b5b899 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -95,8 +95,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"