diff options
author | Alex Neundorf <neundorf@kde.org> | 2013-04-10 20:41:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-04-15 13:13:10 (GMT) |
commit | d33f40638dcc34a8c15b6605325446c777afd249 (patch) | |
tree | d4664414778472cabb03b96e2e108c18a79a000e /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | 22fb73a0d6e27f0ecaf4e10705de204742427b31 (diff) | |
download | CMake-d33f40638dcc34a8c15b6605325446c777afd249.zip CMake-d33f40638dcc34a8c15b6605325446c777afd249.tar.gz CMake-d33f40638dcc34a8c15b6605325446c777afd249.tar.bz2 |
Add regexps for the IAR toolchain to the vendor list.
The IAR compilers produce object files where the plain strings at least
sometimes can't be found, see:
http://www.cmake.org/Bug/view.php?id=10176#c19598
Alex
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCXXCompiler.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake index 6f7e8f6..c79ba89 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -116,6 +116,13 @@ if(NOT CMAKE_CXX_COMPILER_ID_RUN) set(CMAKE_CXX_COMPILER_ID) file(READ ${CMAKE_ROOT}/Modules/CMakePlatformId.h.in CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT) + + # The IAR compiler produces weird output. + # See http://www.cmake.org/Bug/view.php?id=10176#c19598 + list(APPEND CMAKE_CXX_COMPILER_ID_VENDORS IAR) + set(CMAKE_CXX_COMPILER_ID_VENDOR_FLAGS_IAR ) + set(CMAKE_CXX_COMPILER_ID_VENDOR_REGEX_IAR "IAR .+ Compiler") + include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake) CMAKE_DETERMINE_COMPILER_ID(CXX CXXFLAGS CMakeCXXCompilerId.cpp) |