diff options
author | Brad King <brad.king@kitware.com> | 2020-03-11 15:41:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-12 14:07:30 (GMT) |
commit | 0d0aa98c84bca35431f4239e45956c9d24967af4 (patch) | |
tree | 1cd6da3326ef431a4075cded966d11276b3f3c7c /Modules/CMakeDetermineCompilerId.cmake | |
parent | ee3ec27465a4070591e5ce6c9ba72117788bf033 (diff) | |
download | CMake-0d0aa98c84bca35431f4239e45956c9d24967af4.zip CMake-0d0aa98c84bca35431f4239e45956c9d24967af4.tar.gz CMake-0d0aa98c84bca35431f4239e45956c9d24967af4.tar.bz2 |
ASM: Record vendor-specific output matched to identify assembler
For example, with GNU `as`, we match `GNU assembler`, but with GNU `gcc`
as the assembler, we do not match anything. Distinguishing these cases
may be useful for constructing assembler command lines.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 61d2fbe..812f032 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -897,6 +897,7 @@ function(CMAKE_DETERMINE_COMPILER_ID_VENDOR lang userflags) "matched \"${regex}\":\n${output}") set(CMAKE_${lang}_COMPILER_ID "${vendor}" PARENT_SCOPE) set(CMAKE_${lang}_COMPILER_ID_OUTPUT "${output}" PARENT_SCOPE) + set(CMAKE_${lang}_COMPILER_ID_VENDOR_MATCH "${CMAKE_MATCH_1}" PARENT_SCOPE) break() else() if("${result}" MATCHES "timeout") |