From b246b6650ab04cbdf3e258b5a75bf928fc46302c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 18 Dec 2022 09:29:37 +0100 Subject: Fix "link errors connected with recent Zenity dialog feature" (#602) --- src/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 43baa24d1..8994d63e3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -212,12 +212,12 @@ if (FLTK_USE_X11 AND NOT OPTION_USE_WAYLAND) fl_dnd_x.cxx Fl_Native_File_Chooser_FLTK.cxx Fl_Native_File_Chooser_GTK.cxx - Fl_Native_File_Chooser_Zenity.cxx Fl_get_key.cxx ) if (OPTION_USE_KDIALOG) - set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Kdialog.cxx) + set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Kdialog.cxx + Fl_Native_File_Chooser_Zenity.cxx) endif (OPTION_USE_KDIALOG) if (FLTK_USE_CAIRO) @@ -287,9 +287,11 @@ elseif (OPTION_USE_WAYLAND) drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx Fl_Native_File_Chooser_FLTK.cxx Fl_Native_File_Chooser_GTK.cxx - Fl_Native_File_Chooser_Kdialog.cxx - Fl_Native_File_Chooser_Zenity.cxx ) + if (OPTION_USE_KDIALOG) + set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Kdialog.cxx + Fl_Native_File_Chooser_Zenity.cxx) + endif (OPTION_USE_KDIALOG) if (FLTK_USE_X11) list (APPEND DRIVER_FILES drivers/Cairo/Fl_Display_Cairo_Graphics_Driver.cxx -- cgit v1.2.3