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.
8 lines
339 B
CMake
8 lines
339 B
CMake
|
|
set(_compiler_id_pp_test "defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
|
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
|
# define COMPILER_VERSION_PATCH HEX(__CODEGEARC_VERSION__ & 0xFFFF)")
|