MINGW-packages/mingw-w64-kdeconnect/0004-kdeconnect-cmake-disable-checking-winsdk.patch
Biswapriyo Nath 78298c7b74 kdeconnect: Fix building in absence of Windows SDK
This should fix the following cmake error which happend in clangarm64.

CMake Error at CMakeLists.txt:104 (file):
  file failed to open for reading (No such file or directory):
    /registry/SDKManifest.xml
2024-09-21 00:08:09 +05:30

12 lines
500 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,7 +94,7 @@
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications
KIO KCMUtils Service Solid Kirigami People WindowSystem GuiAddons DocTools Crash)
-if (WIN32)
+if (MSVC)
get_filename_component(WINDOWS_KITS_DIR
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots;KitsRoot10]" ABSOLUTE)
file(READ "${WINDOWS_KITS_DIR}/SDKManifest.xml" SDK_MANIFEST)