From 76a0a67026637b9949c0ecdf73c2ba69c1b07c59 Mon Sep 17 00:00:00 2001 From: makise-homura Date: Thu, 21 Dec 2023 20:37:16 +0300 Subject: 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. --- Modules/GetPrerequisites.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12