Merge topic 'CMakeParseImplicitLinkInfo-CMP0054'

d1cf09e3 CMakeParseImplicitLinkInfo: Avoid if() auto-deref in quoted arg
This commit is contained in:
Brad King 2015-02-19 09:32:33 -05:00 committed by CMake Topic Stage
commit 2f0b9c67fc
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var fwk_var log_var obj
# We remove items that are not language-specific.
set(implicit_libs "")
foreach(lib IN LISTS implicit_libs_tmp)
if("${lib}" MATCHES "^(crt.*\\.o|gcc.*|System.*)$")
if("x${lib}" MATCHES "^x(crt.*\\.o|gcc.*|System.*)$")
set(log "${log} remove lib [${lib}]\n")
elseif(IS_ABSOLUTE "${lib}")
get_filename_component(abs "${lib}" ABSOLUTE)