summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-06 14:00:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-06-06 14:00:52 (GMT)
commitec472999dcbfdf11457442268e2e300d4251bac9 (patch)
tree541cbf6348d0f231e62dfb3fcf5da51d083c514d /Tests
parent53d923439515e385f1cb66b5aff2cd14eedce136 (diff)
parent8c789bee83daf70239e7238f3184eb5510dc847e (diff)
downloadCMake-ec472999dcbfdf11457442268e2e300d4251bac9.zip
CMake-ec472999dcbfdf11457442268e2e300d4251bac9.tar.gz
CMake-ec472999dcbfdf11457442268e2e300d4251bac9.tar.bz2
Merge topic 'apple-clang-asm-compiler-id'
8c789bee83 AppleClang: Fix ASM compiler identification Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8537
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Assembler/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt
index 8f6b355..4635f03 100644
--- a/Tests/Assembler/CMakeLists.txt
+++ b/Tests/Assembler/CMakeLists.txt
@@ -24,7 +24,7 @@ if("${CMAKE_GENERATOR}" MATCHES "Makefile|Xcode|Ninja" AND
elseif("${CMAKE_SYSTEM_NAME};${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Darwin;arm64")
list(APPEND C_FLAGS -arch arm64)
endif()
- if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
# Just in case the user is passing -flto, we need to pass -fno-lto to
# clang when generating the assembly file, or else clang will generate
# LLVM IR instead of assembly.