(#11475) qt: set QT_PLUGIN_PATH for the run/build environments

This commit is contained in:
Paul Harris
2022-07-05 13:24:01 +08:00
committed by GitHub
parent 477a80a0a2
commit c1153ca82a

View File

@@ -866,6 +866,10 @@ class QtConan(ConanFile):
self.cpp_info.names["cmake_find_package"] = "Qt6"
self.cpp_info.names["cmake_find_package_multi"] = "Qt6"
# consumers will need the QT_PLUGIN_PATH defined in runenv
self.runenv_info.define("QT_PLUGIN_PATH", os.path.join(self.package_folder, "res", "archdatadir", "plugins"))
self.buildenv_info.define("QT_PLUGIN_PATH", os.path.join(self.package_folder, "res", "archdatadir", "plugins"))
build_modules = []
libsuffix = ""