BundleUtilities: Fix regex to extract dependents from ldd (#12034)

This regex works with spaces in the path.
This commit is contained in:
Clinton Stimpson 2011-05-27 16:48:22 -06:00 committed by David Cole
parent 7ac7b437b8
commit b68d3dc1b5
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
if("${gp_tool}" STREQUAL "ldd")
set(gp_cmd_args "")
set(gp_regex "^[\t ]*[^\t ]+ => ([^\t ]+).*${eol_char}$")
set(gp_regex "^[\t ]*[^\t ]+ => ([^\t\(]+) .*${eol_char}$")
set(gp_regex_error "not found${eol_char}$")
set(gp_regex_fallback "^[\t ]*([^\t ]+) => ([^\t ]+).*${eol_char}$")
set(gp_regex_cmp_count 1)