diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-05-07 10:25:39 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-05-07 12:28:36 (GMT) |
commit | 3b59f8b7c68127c649fd72983e6f0a24cbb51427 (patch) | |
tree | 3b11bd7ef31003468c0b94326d844ce33e60e5bd /Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake | |
parent | 8896501b236258f6908a59eb81f49983892bdcff (diff) | |
download | CMake-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.cmake | 6 |
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)") |