summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-12-08 09:40:57 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-12-08 09:41:06 +0100
commit4bc25f7f9df2872189d57c21f1fa937d83b71536 (patch)
tree1e244c3edebfccf478ec8c01f65c2dcfcb4c533f /src/CMakeLists.txt
parent630517049f21d83dd6a4d63a0f6bbff55a05ac70 (diff)
Fix for issue #278 - continued : add CMake OPTION_USE_KDIALOG
Use of the kdialog command by class Fl_Naive_File_Chooser can now be turned off at build-time through CMake OPTION_USE_KDIALOG. If building via configure + make, set #define USE_KDIALOG to 0 in config.h before make.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 507b106ec..dceb15d0d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -213,9 +213,13 @@ if (USE_X11)
fl_dnd_x.cxx
Fl_Native_File_Chooser_FLTK.cxx
Fl_Native_File_Chooser_GTK.cxx
- Fl_Native_File_Chooser_Kdialog.cxx
Fl_get_key.cxx
)
+
+ if (OPTION_USE_KDIALOG)
+ set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Kdialog.cxx)
+ endif (OPTION_USE_KDIALOG)
+
if (USE_XFT)
set (DRIVER_FILES ${DRIVER_FILES}
drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx