mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01: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
|
|
@ -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…
Reference in New Issue
Block a user