qt-base: fix rpath for dependents (#47424)

ensure that CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON works in qt packages.
This commit is contained in:
Wouter Deconinck 2024-12-11 09:59:47 -06:00 committed by GitHub
parent f760e16688
commit a3543008d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,9 +70,15 @@ def cmake_args(self):
if re_qt.match(dep.name):
qt_prefix_path.append(self.spec[dep.name].prefix)
# Now append all qt-* dependency prefixex into a prefix path
# Now append all qt-* dependency prefixes into a prefix path
args.append(self.define("QT_ADDITIONAL_PACKAGES_PREFIX_PATH", ":".join(qt_prefix_path)))
# Make our CMAKE_INSTALL_RPATH redundant:
# for prefix of current package ($ORIGIN/../lib type of rpaths),
args.append(self.define("QT_DISABLE_RPATH", True))
# for prefixes of dependencies
args.append(self.define("QT_NO_DISABLE_CMAKE_INSTALL_RPATH_USE_LINK_PATH", True))
return args
@run_after("install")