From 7c6d9a37bce24a1af3f2ecb1af0fdff24d7733f9 Mon Sep 17 00:00:00 2001 From: Hector Martinez-Seara Date: Tue, 25 Jun 2024 09:17:39 +0200 Subject: [PATCH] Added suffix libdrm to CMakeLists.txt for drm [ Upstream commit e85647f7df194aa2e3b534a959decf4037fc2835 ] Cannonical libdrm package installation results in headers installed at `\usr\include\libdrm`. The current CMakeLists.txt installation script search the headers only in `drm` suffix which is where headers are found in readhat base distros. I propose to add also the cannonical path `libdrm` also used in distros like archlinux. Signed-off-by: Hector Martinez-Seara Signed-off-by: Nicolas Morey --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7246e4a21..35a1bf1a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -542,7 +542,7 @@ RDMA_DoFixup("${SYSTEMD_FOUND}" "systemd/sd-daemon.h") # drm headers # Check if the headers have been installed by kernel-headers -find_path(DRM_INCLUDE_DIRS "drm.h" PATH_SUFFIXES "drm") +find_path(DRM_INCLUDE_DIRS "drm.h" PATH_SUFFIXES "drm" "libdrm") # Alternatively the headers could have been installed by libdrm if (NOT DRM_INCLUDE_DIRS)