Skip to content

Commit

Permalink
Added suffix libdrm to CMakeLists.txt for drm
Browse files Browse the repository at this point in the history
[ Upstream commit e85647f ]

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 <hseara@gmail.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
hseara authored and nmorey committed Jun 25, 2024
1 parent 944053c commit 7c6d9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c6d9a3

Please sign in to comment.