summaryrefslogtreecommitdiff
path: root/Modules/Compiler/HP-CXX-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-22 16:34:47 +0200
committerStephen Kelly <steveire@gmail.com>2014-05-07 14:00:00 +0200
commit9d285600d484c8e539801310f2c4bbe2bb4daef8 (patch)
tree6f99d8532cd59c260584e85359ebbfe024a0d6f6 /Modules/Compiler/HP-CXX-DetermineCompiler.cmake
parentc7ddd409fd1898913423e62615215350c6bc7cf6 (diff)
downloadcmake-9d285600d484c8e539801310f2c4bbe2bb4daef8.tar.gz
Project: Generate the CXX compiler Id test from multiple files.
This will allow sharing of the logic of the order to test compilers in and the preprocessor macros used to do that and to determine the version components.
Diffstat (limited to 'Modules/Compiler/HP-CXX-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/HP-CXX-DetermineCompiler.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Compiler/HP-CXX-DetermineCompiler.cmake b/Modules/Compiler/HP-CXX-DetermineCompiler.cmake
new file mode 100644
index 0000000000..2506e06ccb
--- /dev/null
+++ b/Modules/Compiler/HP-CXX-DetermineCompiler.cmake
@@ -0,0 +1,8 @@
+
+set(_compiler_id_pp_test "defined(__HP_aCC)")
+
+set(_compiler_id_version_compute "
+ /* __HP_aCC = VVRRPP */
+# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
+# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
+# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)")