Skip to content

Commit

Permalink
Added suffix libdrm to CMakeLists.txt for drm
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hseara committed Jun 25, 2024
1 parent b401878 commit e85647f
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 @@ -539,7 +539,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 e85647f

Please sign in to comment.