summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorNorbert Lange <nolange79@gmail.com>2017-06-15 12:50:22 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-29 17:25:58 (GMT)
commitd8e6cd9ed8bfee9073cff26cb654bc01e653b0b9 (patch)
tree97832d5147c8ea16bf64e3ca53a9a927dd3f40c6 /Modules/CMakeDetermineCompilerId.cmake
parent0b1a2876c817a00daf7027570b1976a9e15ff654 (diff)
downloadCMake-d8e6cd9ed8bfee9073cff26cb654bc01e653b0b9.zip
CMake-d8e6cd9ed8bfee9073cff26cb654bc01e653b0b9.tar.gz
CMake-d8e6cd9ed8bfee9073cff26cb654bc01e653b0b9.tar.bz2
IAR: Improve support for IAR ARM Compiler
Make the implementation for this compiler more complete. IAR has multiple C++ modes, historically they were reduced c++ versions for embedded that gradually improved to the full standard (which can be reduced again by e.g. disabling rtti and exceptions). The new implementation picks the best available, but the c++ mode can also be overridden by defining `CMAKE_IAR_CXX_FLAG`. Add C/C++ standard flags so that all modes up to and including the last supported standard are defined. Fixes: #16826
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 59aac5c..8d4e6aa 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -678,6 +678,7 @@ function(CMAKE_DETERMINE_COMPILER_ID_VENDOR lang userflags)
"Checking whether the ${lang} compiler is ${vendor} using \"${flags}\" "
"matched \"${regex}\":\n${output}")
set(CMAKE_${lang}_COMPILER_ID "${vendor}" PARENT_SCOPE)
+ set(CMAKE_${lang}_COMPILER_ID_OUTPUT "${output}" PARENT_SCOPE)
break()
else()
if("${result}" MATCHES "timeout")