* Runtime-only dependency needed for mapping monitor hardware vendor IDs to full names For this, fix the patch to Findhwdata.cmake to actually find it.
13 lines
691 B
CMake
13 lines
691 B
CMake
--- 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()
|