mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 05:11:15 -06:00
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.
10 lines
293 B
CMake
10 lines
293 B
CMake
|
|
set(_compiler_id_pp_test "defined(__PATHCC__)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
|
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
|
# if defined(__PATHCC_PATCHLEVEL__)
|
|
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
|
# endif")
|