aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/plasma6-kwin-x11/files/patch-cmake_modules_Findhwdata.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/plasma6-kwin-x11/files/patch-cmake_modules_Findhwdata.cmake')
-rw-r--r--x11-wm/plasma6-kwin-x11/files/patch-cmake_modules_Findhwdata.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-wm/plasma6-kwin-x11/files/patch-cmake_modules_Findhwdata.cmake b/x11-wm/plasma6-kwin-x11/files/patch-cmake_modules_Findhwdata.cmake
new file mode 100644
index 000000000000..1e09fac7a31c
--- /dev/null
+++ b/x11-wm/plasma6-kwin-x11/files/patch-cmake_modules_Findhwdata.cmake
@@ -0,0 +1,13 @@
+--- cmake/modules/Findhwdata.cmake.orig 2023-02-21 19:51:03 UTC
++++ cmake/modules/Findhwdata.cmake
+@@ -10,8 +10,8 @@ if (UNIX AND NOT APPLE)
+ # SPDX-License-Identifier: BSD-3-Clause
+
+ if (UNIX AND NOT APPLE)
+- find_path(hwdata_DIR NAMES hwdata/pnp.ids HINTS /usr/share ENV XDG_DATA_DIRS)
+- find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS /usr/share)
++ find_path(hwdata_DIR NAMES hwdata/pnp.ids HINTS ${CMAKE_INSTALL_PREFIX}/share/hwdata /usr/share ENV XDG_DATA_DIRS)
++ find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS ${CMAKE_INSTALL_PREFIX}/share/hwdata /usr/share)
+ if (NOT hwdata_DIR OR NOT hwdata_PNPIDS_FILE)
+ set(hwdata_FOUND FALSE)
+ else()