diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2011-05-27 22:48:22 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-05-31 17:12:28 (GMT) |
commit | b68d3dc1b5a7b783b9624c6ae4a06e2a70e30b55 (patch) | |
tree | 2067c614d833c84493b51f882821f77b0f3ead00 /Modules/GetPrerequisites.cmake | |
parent | 7ac7b437b8bfc344e0d7e451d419596ea809d439 (diff) | |
download | CMake-b68d3dc1b5a7b783b9624c6ae4a06e2a70e30b55.zip CMake-b68d3dc1b5a7b783b9624c6ae4a06e2a70e30b55.tar.gz CMake-b68d3dc1b5a7b783b9624c6ae4a06e2a70e30b55.tar.bz2 |
BundleUtilities: Fix regex to extract dependents from ldd (#12034)
This regex works with spaces in the path.
Diffstat (limited to 'Modules/GetPrerequisites.cmake')
-rw-r--r-- | Modules/GetPrerequisites.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake index f5c1b74..023b8b5 100644 --- a/Modules/GetPrerequisites.cmake +++ b/Modules/GetPrerequisites.cmake @@ -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) |