summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.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/IBMCPP-C-DetermineVersionInternal.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/IBMCPP-C-DetermineVersionInternal.cmake')
-rw-r--r--Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake b/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake
new file mode 100644
index 0000000..6169ab4
--- /dev/null
+++ b/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake
@@ -0,0 +1,6 @@
+
+set(_compiler_id_version_compute "
+ /* __IBMC__ = VRP */
+# define @PREFIX@COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
+# define @PREFIX@COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
+# define @PREFIX@COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)")