Skip to content

Add infrastructure to detect secondary compiler version information

Brad King requested to merge brad.king/cmake:compiler-version-internal into master

Create a CMAKE_<LANG>_COMPILER_VERSION_INTERNAL variable to hold a secondary/internal compiler version number detected at the same time as the primary compiler version. This will be useful for some compilers where we need such a number to determine correct usage.

For IAR, __IAR_SYSTEMS_ICC__ provides additional version information that we need to determine correct usage of the compiler. Extract and store it as CMAKE_<LANG>_COMPILER_VERSION_INTERNAL.

Issue: #17264

Merge request reports