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
236 B
CMake
8 lines
236 B
CMake
|
|
set(_compiler_id_pp_test "defined(__COMO__)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
/* __COMO_VERSION__ = VRR */
|
|
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
|
|
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)")
|