Add infrastructure to detect secondary compiler version information

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.

Inspired-by: Stefan Andersson <tfosm@hotmail.com>
Suggested-by: Norbert Lange <norbert.lange@andritz.com>
Issue: #17264
This commit is contained in:
Brad King
2017-09-27 08:05:44 -04:00
parent f952f16d23
commit b96ca728f1
8 changed files with 34 additions and 0 deletions
@@ -0,0 +1,8 @@
CMAKE_<LANG>_COMPILER_VERSION_INTERNAL
--------------------------------------
An internal variable subject to change.
This is used to identify the variant of a compiler based on an internal
version number. For some compilers this is needed to determine the
correct usage.