summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-12-09 09:21:24 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-12-09 09:21:24 +0100
commitc82165cb074b39b63f3e0d873902d76fc4615292 (patch)
treee49b11e0d5f2c1e870a3c3af4ee618ed94aa9100 /CMake
parent5ff42dd37a5fa071f54a6e413e349f26f4837340 (diff)
No need to link to libgtk when using package libdecor-0-dev
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index cabdf4e6b..eac34b9e6 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -970,7 +970,7 @@ endif((X11_Xft_FOUND OR NOT USE_PANGOXFT) AND FLTK_USE_PANGO)
if(FLTK_BACKEND_WAYLAND)
# Note: Disable FLTK_USE_LIBDECOR_GTK to get cairo titlebars rather than GTK
- if(FLTK_USE_LIBDECOR_GTK)
+ if(FLTK_USE_LIBDECOR_GTK AND NOT USE_SYSTEM_LIBDECOR)
pkg_check_modules(GTK IMPORTED_TARGET gtk+-3.0)
if(GTK_FOUND)
list(APPEND FLTK_BUILD_INCLUDE_DIRECTORIES ${GTK_INCLUDE_DIRS})
@@ -978,7 +978,7 @@ if(FLTK_BACKEND_WAYLAND)
message(WARNING "Installation of the development files for the GTK library "
"(e.g., libgtk-3-dev) is recommended when using the gnome desktop.")
endif(GTK_FOUND)
- endif(FLTK_USE_LIBDECOR_GTK)
+ endif(FLTK_USE_LIBDECOR_GTK AND NOT USE_SYSTEM_LIBDECOR)
endif()