Commit 9d3a95f5 authored by Volker Krause's avatar Volker Krause
Browse files

Use PACKAGE_PREFIX_DIR before any find_dependency() calls

PACKAGE_PREFIX_DIR will be used in the generated code of the @PACKAGE_@
placeholder, and can be changed by find_dependency() calls. Worked by
chance so far, but happens with Qt6. This then results in build failures
in consumers trying to locate kscreenlocker's D-Bus files.
parent c310b145
Pipeline #147146 passed with stage
in 2 minutes and 15 seconds
@PACKAGE_INIT@
# consume PACKAGE_PREFIX_DIR (which will be implicitly generated here) before
# the first find_dependency call, as it might change due to that
set(KSCREENLOCKER_DBUS_INTERFACES_DIR "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@")
include(CMakeFindDependencyMacro)
find_dependency(Qt@QT_MAJOR_VERSION@Core @QT_MIN_VERSION@)
if (TARGET Qt5::Core)
find_dependency(Qt5X11Extras @QT_MIN_VERSION@)
endif()
set(KSCREENLOCKER_DBUS_INTERFACES_DIR "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@")
include("${CMAKE_CURRENT_LIST_DIR}/KScreenLockerTargets.cmake")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment