mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user