summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-07-13 17:39:49 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-07-13 18:01:38 (GMT)
commit336c4fc6fa80149e189a19f91b8de934b48105de (patch)
treea3e50423b74251779e1fcea5ddd2c76a1e0051c0
parent4b460a5ba8cdb36e05c1517237c8ef15562e4490 (diff)
downloadCMake-336c4fc6fa80149e189a19f91b8de934b48105de.zip
CMake-336c4fc6fa80149e189a19f91b8de934b48105de.tar.gz
CMake-336c4fc6fa80149e189a19f91b8de934b48105de.tar.bz2
CMakeDetermineASMCompiler: fix a CMP0054 warning
This was introduced in commit d8e6cd9e (IAR: Improve support for IAR ARM Compiler, 2017-06-15) from !991. Fixes #17062.
-rw-r--r--Modules/CMakeDetermineASMCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineASMCompiler.cmake b/Modules/CMakeDetermineASMCompiler.cmake
index d031421..f7cf54a 100644
--- a/Modules/CMakeDetermineASMCompiler.cmake
+++ b/Modules/CMakeDetermineASMCompiler.cmake
@@ -103,7 +103,7 @@ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
include(CMakeDetermineCompilerId)
set(userflags)
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT} "${userflags}")
- if("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}" STREQUAL "IAR")
+ if("x${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}" STREQUAL "xIAR")
# primary necessary to detect architecture, so the right archiver and linker can be picked
# eg. IAR Assembler V8.10.1.12857/W32 for ARM
# Cut out identification first, newline handling is a pain