summaryrefslogtreecommitdiff
path: root/x11-wm/plasma5-kwin/files/patch-cmake_modules_Findhwdata.cmake
blob: 264e396e122dfc15f0267e23d4653ab488d70a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- cmake/modules/Findhwdata.cmake.orig	2021-02-14 10:31:01 UTC
+++ cmake/modules/Findhwdata.cmake
@@ -10,8 +10,8 @@
 # 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 /usr/share ENV XDG_DATA_DIRS)
+    find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS ${CMAKE_INSTALL_PREFIX}/share /usr/share)
     if (NOT hwdata_DIR OR NOT hwdata_PNPIDS_FILE)
         set(hwdata_FOUND FALSE)
     else()