ASM: Identify Microsoft assemblers more specifically

Other tools may print "Microsoft" when invoked with `-?`, such as `cl`.
Look for output specific to the Microsoft Macro Assembler and its ARM
variant.
This commit is contained in:
Brad King committed 2025-04-08 15:23:08 -04:00
1 parent 6baf65ec46
commit d4b3443ed2
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS MSVC )
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_MSVC "-?")
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft")
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft.*Macro Assembler")
list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI )
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI "-h")