mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
9d285600d4
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.
9 lines
307 B
CMake
9 lines
307 B
CMake
|
|
set(_compiler_id_pp_test "defined(__DECCXX)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
/* __DECCXX_VER = VVRRTPPPP */
|
|
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
|
|
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
|
|
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)")
|