vcpkg/ports/kf5dbusaddons/x11_private_dependency.diff

17 lines
580 B
Diff
Raw Normal View History

diff --git a/KF5DBusAddonsConfig.cmake.in b/KF5DBusAddonsConfig.cmake.in
index 36f55e452635a8edc3a883fe58ac69d490e5e596..2f6f02fc4f3f70052b7206156e74d94f10037936 100644
--- a/KF5DBusAddonsConfig.cmake.in
+++ b/KF5DBusAddonsConfig.cmake.in
@@ -3,6 +3,11 @@
include(CMakeFindDependencyMacro)
find_dependency(Qt5DBus @REQUIRED_QT_VERSION@)
+if(NOT @BUILD_SHARED_LIBS@)
+ if(@Qt5X11Extras_FOUND@)
+ find_dependency(Qt5X11Extras @REQUIRED_QT_VERSION@)
+ endif()
+endif()
include("${CMAKE_CURRENT_LIST_DIR}/KF5DBusAddonsTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@