summaryrefslogtreecommitdiff
path: root/Modules/Compiler/Compaq-C-DetermineCompiler.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Compiler/Compaq-C-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/Compaq-C-DetermineCompiler.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Compiler/Compaq-C-DetermineCompiler.cmake b/Modules/Compiler/Compaq-C-DetermineCompiler.cmake
new file mode 100644
index 000000000..02e99dca0
--- /dev/null
+++ b/Modules/Compiler/Compaq-C-DetermineCompiler.cmake
@@ -0,0 +1,8 @@
+
+set(_compiler_id_pp_test "defined(__DECC)")
+
+set(_compiler_id_version_compute "
+ /* __DECC_VER = VVRRTPPPP */
+# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__DECC_VER/10000000)
+# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__DECC_VER/100000 % 100)
+# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__DECC_VER % 10000)")