mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 06:13:09 +00:00
Fix KF6Auth find_package order in kauth helpers
find_package(KF6Auth) was placed after target_link_libraries, so KF6::AuthCore could be undefined when the linker target was created. Move it before target_link_libraries in both the flashlight and waydroid helpers.
This commit is contained in:
parent
209570d3b2
commit
a29019631e
2 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,10 @@
|
|||
# SPDX-FileCopyrightText: 2025 Florian RICHER <florian.richer@protonmail.com>
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
if(NOT TARGET KF6::AuthCore)
|
||||
find_package(KF6Auth NO_MODULE REQUIRED)
|
||||
endif()
|
||||
|
||||
add_executable(waydroidhelper)
|
||||
target_sources(waydroidhelper PRIVATE waydroidhelper.cpp)
|
||||
|
||||
|
|
@ -12,10 +16,6 @@ target_link_libraries(waydroidhelper
|
|||
|
||||
install(TARGETS waydroidhelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
||||
|
||||
if(NOT TARGET KF6::AuthCore)
|
||||
find_package(KF6Auth NO_MODULE REQUIRED)
|
||||
endif()
|
||||
|
||||
kauth_install_helper_files(waydroidhelper org.kde.plasma.mobileshell.waydroidhelper root)
|
||||
kauth_install_actions(org.kde.plasma.mobileshell.waydroidhelper waydroidhelper.actions)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@
|
|||
add_executable(flashlighthelper)
|
||||
target_sources(flashlighthelper PRIVATE flashlighthelper.cpp)
|
||||
|
||||
if(NOT TARGET KF6::AuthCore)
|
||||
find_package(KF6Auth NO_MODULE REQUIRED)
|
||||
endif()
|
||||
|
||||
target_link_libraries(flashlighthelper
|
||||
Qt6::Core
|
||||
KF6::AuthCore
|
||||
|
|
@ -13,10 +17,6 @@ target_link_libraries(flashlighthelper
|
|||
|
||||
install(TARGETS flashlighthelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
||||
|
||||
if(NOT TARGET KF6::AuthCore)
|
||||
find_package(KF6Auth NO_MODULE REQUIRED)
|
||||
endif()
|
||||
|
||||
kauth_install_helper_files(flashlighthelper org.kde.plasma.mobileshell.flashlighthelper root)
|
||||
kauth_install_actions(org.kde.plasma.mobileshell.flashlighthelper flashlighthelper.actions)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue