summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Compaq-C-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-05-07 10:25:39 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-07 12:28:36 (GMT)
commit3b59f8b7c68127c649fd72983e6f0a24cbb51427 (patch)
tree3b11bd7ef31003468c0b94326d844ce33e60e5bd /Modules/Compiler/Compaq-C-DetermineCompiler.cmake
parent8896501b236258f6908a59eb81f49983892bdcff (diff)
downloadCMake-3b59f8b7c68127c649fd72983e6f0a24cbb51427.zip
CMake-3b59f8b7c68127c649fd72983e6f0a24cbb51427.tar.gz
CMake-3b59f8b7c68127c649fd72983e6f0a24cbb51427.tar.bz2
Project: Refactor C compiler determination into multiple files.
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 0000000..56fedb1
--- /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 DEC(__DECC_VER/10000000)
+# define @PREFIX@COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
+# define @PREFIX@COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)")