summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-11 10:42:56 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-11 10:42:56 +0200
commit98d8a5da0c6449eb1e976d00368e6469dea4df1d (patch)
tree06afe5f355827acd2934b2040a6982a067e789df /src
parentef243d6c865ba366f5d870ad48617ddd9b2a56e9 (diff)
Fix support of CMake OPTION_WAYLAND_ONLY.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a9db6e04a..86fd019fe 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -664,7 +664,10 @@ if (OPTION_USE_WAYLAND)
if (OPTION_USE_SYSTEM_LIBDECOR)
list (APPEND OPTIONAL_LIBS "-ldecor-0")
endif (OPTION_USE_SYSTEM_LIBDECOR)
- list (APPEND OPTIONAL_LIBS "-lwayland-cursor -lwayland-client -lxkbcommon -ldl -ldbus-1 -lXcursor -lXrender -lXinerama -lXfixes -lXft -lXext -lX11")
+ list (APPEND OPTIONAL_LIBS "-lwayland-cursor -lwayland-client -lxkbcommon -ldl -ldbus-1")
+ if (NOT OPTION_WAYLAND_ONLY)
+ list (APPEND OPTIONAL_LIBS "-lXcursor -lXrender -lXinerama -lXfixes -lXft -lXext -lX11")
+ endif (OPTION_WAYLAND_ONLY)
if (GTK_FOUND)
list (APPEND OPTIONAL_LIBS ${GTK_LDFLAGS} )
endif (GTK_FOUND)