mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 20:25:39 +02:00
cmake: don't try to link againt xcb-errors when we didn't find it
This commit is contained in:
parent
63618b8fab
commit
6562cb61df
1 changed files with 2 additions and 1 deletions
|
@ -48,10 +48,11 @@ endif ()
|
|||
|
||||
if (ENABLE_X11)
|
||||
add_library(xcb-stuff STATIC EXCLUDE_FROM_ALL xcb.c xcb.h)
|
||||
target_link_libraries(xcb-stuff PkgConfig::xcb)
|
||||
if (XCB_ERRORS_FOUND)
|
||||
target_compile_definitions(xcb-stuff PRIVATE HAVE_XCB_ERRORS)
|
||||
target_link_libraries(xcb-stuff PkgConfig::xcb-errors)
|
||||
endif ()
|
||||
target_link_libraries(xcb-stuff PkgConfig::xcb PkgConfig::xcb-errors)
|
||||
|
||||
add_library(bar-xcb STATIC EXCLUDE_FROM_ALL bar/xcb.c bar/xcb.h)
|
||||
target_link_libraries(bar-xcb
|
||||
|
|
Loading…
Add table
Reference in a new issue