From e5729862312a53e8ded993bb4098e86063d2131f Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 12 Mar 2024 09:48:01 -0400 Subject: LinkerId: Update detection of linker tool for Xcode 15.3 Xcode now prints extra `ExecuteExternalTool` lines that happen to mention the linker tool, but not in conjunction with actually linking something. Ignore them. --- Modules/CMakeParseImplicitLinkInfo.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CMakeParseImplicitLinkInfo.cmake b/Modules/CMakeParseImplicitLinkInfo.cmake index 896eac0..dc09b20 100644 --- a/Modules/CMakeParseImplicitLinkInfo.cmake +++ b/Modules/CMakeParseImplicitLinkInfo.cmake @@ -75,7 +75,7 @@ function(cmake_parse_implicit_link_info2 text log_var obj_regex) set(linker_regex "^( *|.*[/\\])(${linker}|${startfile}|([^/\\]+-)?ld|collect2)[^/\\]*( |$)") set(linker_exclude_regex "collect2 version |^[A-Za-z0-9_]+=|/ldfe ") set(linker_tool_regex "^[ \t]*(->|\")?[ \t]*(([^\"]*[/\\])?(${linker}))(\"|,| |$)") - set(linker_tool_exclude_regex "cuda-fake-ld|-fuse-ld=") + set(linker_tool_exclude_regex "cuda-fake-ld|-fuse-ld=|^ExecuteExternalTool ") set(linker_tool "NOTFOUND") set(linker_tool_fallback "") set(link_line_parsed 0) -- cgit v0.12