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
280 B
CMake
10 lines
280 B
CMake
|
|
set(_compiler_id_pp_test "defined(__PGI)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
|
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
|
# if defined(__PGIC_PATCHLEVEL__)
|
|
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
|
# endif")
|