File find-package-kdsingleapplication.patch of Package flameshot
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 25fe388a..0df94ffc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -116,6 +116,9 @@ if (USE_KDSINGLEAPPLICATION)
# Check if KDSingleApplication is available locally
if(EXISTS "${CMAKE_SOURCE_DIR}/external/KDSingleApplication/CMakeLists.txt")
add_subdirectory("${CMAKE_SOURCE_DIR}/external/KDSingleApplication")
+ else()
+ find_package(KDSingleApplication-qt6 REQUIRED)
+ endif()
else()
FetchContent_Declare(
kdsingleApplication
@@ -124,9 +127,6 @@ if (USE_KDSINGLEAPPLICATION)
)
FetchContent_MakeAvailable(kdsingleApplication)
endif()
- else()
- find_package(KDSingleApplication-qt6 REQUIRED)
- endif()
endif()
# ToDo: Check if this is used anywhere