mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Make libcap optional.
This commit is contained in:
parent
5c211e6195
commit
dd40a42a99
4 changed files with 30 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
include_directories(
|
||||
${WAYLAND_INCLUDE_DIR}
|
||||
${DRM_INCLUDE_DIRS}
|
||||
${Libcap_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set(sources
|
||||
|
|
@ -12,7 +11,6 @@ set(sources
|
|||
set(libs
|
||||
wlr-util
|
||||
${WAYLAND_LIBRARIES}
|
||||
${Libcap_LIBRARIES}
|
||||
)
|
||||
|
||||
if (SYSTEMD_FOUND)
|
||||
|
|
@ -24,5 +22,13 @@ if (SYSTEMD_FOUND)
|
|||
list(APPEND libs ${SYSTEMD_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
if (Libcap_FOUND)
|
||||
add_definitions(${Libcap_DEFINITIONS})
|
||||
include_directories(${Libcap_INCLUDE_DIRS})
|
||||
|
||||
add_definitions(-DHAS_LIBCAP)
|
||||
list(APPEND libs ${Libcap_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
add_library(wlr-session ${sources})
|
||||
target_link_libraries(wlr-session ${libs})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue