Merge topic 'pathscale-implicit-link-info'

25845b10 CMakeParseImplicitLinkInfo: Exclude pathcc ldfe lines (#16100)
This commit is contained in:
Brad King 2016-05-12 09:28:31 -04:00 committed by CMake Topic Stage
commit 4cc32ad538
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var fwk_var log_var obj
# Construct a regex to match linker lines. It must match both the
# whole line and just the command (argv[0]).
set(linker_regex "^( *|.*[/\\])(${linker}|([^/\\]+-)?ld|collect2)[^/\\]*( |$)")
set(linker_exclude_regex "collect2 version |^[A-Za-z0-9_]+=")
set(linker_exclude_regex "collect2 version |^[A-Za-z0-9_]+=|/ldfe ")
set(log "${log} link line regex: [${linker_regex}]\n")
string(REGEX REPLACE "\r?\n" ";" output_lines "${text}")
foreach(line IN LISTS output_lines)