summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-03-18 15:53:31 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-03-18 15:53:31 +0100
commitd4efb77660fb80e208595a2d14207849dd14c103 (patch)
treee3265a2ecd155ef164933a5c6f8a9ebc85b92c8f /CMake
parent5fcca347c65946a840a73b0202755830f97353b3 (diff)
Fix "X11 library missing in fltk-config" (#1228)
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index aa4936b65..7bf8f675f 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -403,7 +403,7 @@ set(FLTK_USE_STD 1) # always ON since FLTK 1.5.0, option will be
# find X11 libraries and headers
set(PATH_TO_XLIBS)
-if((NOT APPLE OR FLTK_BACKEND_X11) AND NOT WIN32 AND NOT FLTK_BACKEND_WAYLAND)
+if(FLTK_BACKEND_X11)
include(FindX11)
if(X11_FOUND)
set(FLTK_USE_X11 1)