diff options
author | Brad King <brad.king@kitware.com> | 2017-09-27 12:05:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-03 12:11:27 (GMT) |
commit | b96ca728f1da01c051ac3b44f32b5221d1efeff9 (patch) | |
tree | 6c1ab46b51909ad0735f3c07057c1925984541d2 /Modules/CMakeCCompiler.cmake.in | |
parent | f952f16d233b7121740f271a0a5d65d108473568 (diff) | |
download | CMake-b96ca728f1da01c051ac3b44f32b5221d1efeff9.zip CMake-b96ca728f1da01c051ac3b44f32b5221d1efeff9.tar.gz CMake-b96ca728f1da01c051ac3b44f32b5221d1efeff9.tar.bz2 |
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
Diffstat (limited to 'Modules/CMakeCCompiler.cmake.in')
-rw-r--r-- | Modules/CMakeCCompiler.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCCompiler.cmake.in b/Modules/CMakeCCompiler.cmake.in index 92259dd..8ad0c01 100644 --- a/Modules/CMakeCCompiler.cmake.in +++ b/Modules/CMakeCCompiler.cmake.in @@ -2,6 +2,7 @@ set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@") set(CMAKE_C_COMPILER_ARG1 "@CMAKE_C_COMPILER_ARG1@") set(CMAKE_C_COMPILER_ID "@CMAKE_C_COMPILER_ID@") set(CMAKE_C_COMPILER_VERSION "@CMAKE_C_COMPILER_VERSION@") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "@CMAKE_C_COMPILER_VERSION_INTERNAL@") set(CMAKE_C_COMPILER_WRAPPER "@CMAKE_C_COMPILER_WRAPPER@") set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "@CMAKE_C_STANDARD_COMPUTED_DEFAULT@") set(CMAKE_C_COMPILE_FEATURES "@CMAKE_C_COMPILE_FEATURES@") |