Allow CMake-based build with -DFLTK_BACKEND_X11=0 under Linux/Unix

This commit is contained in:
ManoloFLTK 2024-03-13 09:06:10 +01:00
parent 9f4cea25bf
commit 40aa9c8609
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ if(FLTK_GRAPHICS_CAIRO)
set(FLTK_USE_PANGO TRUE CACHE BOOL "use lib Pango")
endif(FLTK_GRAPHICS_CAIRO)
if(FLTK_USE_PANGO OR FLTK_GRAPHICS_CAIRO) # implies to use PANGOXFT
if(FLTK_USE_X11 AND (FLTK_USE_PANGO OR FLTK_GRAPHICS_CAIRO)) # implies to use PANGOXFT
set(USE_PANGOXFT true)
endif()