diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2023-12-21 17:37:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-08 20:25:57 (GMT) |
commit | 76a0a67026637b9949c0ecdf73c2ba69c1b07c59 (patch) | |
tree | c96dc53d8c83fc64f2eabf280c50ee1ff254b49b /Modules/GetPrerequisites.cmake | |
parent | a3f76a4e4dc15997f22306b002fbc452af1259a6 (diff) | |
download | CMake-76a0a67026637b9949c0ecdf73c2ba69c1b07c59.zip CMake-76a0a67026637b9949c0ecdf73c2ba69c1b07c59.tar.gz CMake-76a0a67026637b9949c0ecdf73c2ba69c1b07c59.tar.bz2 |
GetPrerequisites: Tolerate multiple leading '/' in system library paths
On OS Elbrus 8.x, we see a dependency on `//usr/lib/libpcre2-8.so.0``
in the Qt4Deploy test. Recognize it as a system 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 0ba35b6..d55c4ca 100644 --- a/Modules/GetPrerequisites.cmake +++ b/Modules/GetPrerequisites.cmake @@ -514,7 +514,7 @@ function(gp_resolved_file_type original_file file exepath dirs type_var) string(TOLOWER "${resolved_file}" lower) if(UNIX) - if(resolved_file MATCHES "^(/lib/|/lib32/|/libx32/|/lib64/|/usr/lib/|/usr/lib32/|/usr/libx32/|/usr/lib64/|/usr/X11R6/|/usr/bin/)") + if(resolved_file MATCHES "^/*(/lib/|/lib32/|/libx32/|/lib64/|/usr/lib/|/usr/lib32/|/usr/libx32/|/usr/lib64/|/usr/X11R6/|/usr/bin/)") set(is_system 1) endif() endif() |