mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibGfx: Use PkgConfig to find libdrm
On FreeBSD the libdrm headers are not in a standard location so this makes the include more portable.
This commit is contained in:
parent
abe536652f
commit
bfa86f7961
Notes:
github-actions[bot]
2025-10-22 11:56:12 +00:00
Author: https://github.com/cqundefine
Commit: bfa86f7961
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6172
Reviewed-by: https://github.com/gmta ✅
1 changed files with 5 additions and 0 deletions
|
|
@ -173,4 +173,9 @@ endif()
|
|||
|
||||
if (HAS_VULKAN)
|
||||
target_link_libraries(LibCore PUBLIC Vulkan::Vulkan Vulkan::Headers)
|
||||
|
||||
if ((LINUX AND NOT ANDROID) OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
pkg_check_modules(LibDRM REQUIRED libdrm)
|
||||
target_include_directories(LibGfx PUBLIC ${LibDRM_INCLUDE_DIRS})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue