Skip to content

Commit

Permalink
Fix X11 includes in lua modules
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <[email protected]>
  • Loading branch information
Caellian committed Nov 16, 2024
1 parent 2bfd674 commit 4edba0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/ConkyPlatformChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ if(BUILD_LUA_CAIRO)
set(luacairo_includes ${CAIROXLIB_INCLUDE_DIRS} ${luacairo_includes})
endif(BUILD_LUA_CAIRO_XLIB)

list(REMOVE_DUPLICATES luacairo_libs)
if("-lX11" IN_LIST luacairo_libs)
list(REMOVE_ITEM luacairo_libs "-lX11" "-lXext")
set(luacairo_libs ${X11_LIBRARIES} ${luacairo_libs})
endif("-lX11" IN_LIST luacairo_libs)

find_program(APP_PATCH patch)

if(NOT APP_PATCH)
Expand Down

0 comments on commit 4edba0b

Please sign in to comment.