vcpkg/ports/kf5guiaddons/fix_cmake.patch
Dawid Wróbel c0bc5e1b0f
[kf5guiaddons] fix Wayland scanner not being found by transitive deps; fix static builds (#19203)
* [kf5guiaddons] add QtWaylandScanner_EXECUTABLE variable to Config.cmake

* [kf5guiaddons] update versions

* [kf5guiaddons] remove extraneous options

* [kf5guiaddons] update versions

* [kf5guiaddons] remove extraneous lines, bump version

* [kf5guiaddons] update versions

* [kf5guiaddons] add QtWaylandScanner_EXECUTABLE to MAYBE_UNUSED_VARIABLES

* [kf5guiaddons] update versions

* [kf5guiaddons] replace CURRENT_INSTALLED_DIR without affecting other vars

* [kf5guiaddons] update deprecated functions

* [kf5guiaddons] wrap paths in quotes

* [kf5guiaddons] update versions

* [kf5guiaddons] use PACKAGE_PREFIX relative path instead CURRENT_PACKAGES_DIR

* [kf5guiaddons] update versions

* [kf5guiaddons] cache the QtWaylandScanner_EXECUTABLE variable

* [kf5guiaddons] update versions

* [kf5guiaddons] update versions

* [kf5guiaddons] Add missing static dependency

* [kf5guiaddons] update versions

* [kf5guiaddons] rename patch file

* [kf5guiaddons] update versions

* [kf5guiaddons] add PACKAGE_NAME to vcpkg_cmake_config_fixup

* [kf5guiaddons] update versions
2021-08-30 10:04:04 -07:00

13 lines
617 B
Diff

diff --git a/KF5GuiAddonsConfig.cmake.in b/KF5GuiAddonsConfig.cmake.in
index ae17f6b..34e41bd 100644
--- a/KF5GuiAddonsConfig.cmake.in
+++ b/KF5GuiAddonsConfig.cmake.in
@@ -10,6 +10,7 @@ if (NOT @BUILD_SHARED_LIBS@)
find_dependency(Qt5X11Extras @REQUIRED_QT_VERSION@)
endif()
if (@WITH_WAYLAND@)
+ set(QtWaylandScanner_EXECUTABLE "${PACKAGE_PREFIX}/tools/qt5-wayland/bin/qtwaylandscanner" CACHE STRING "QtWaylandScanner workaround")
find_dependency(Wayland REQUIRED Client)
find_dependency(Qt5WaylandClient @REQUIRED_QT_VERSION@)
find_dependency(QtWaylandScanner)