From 4bc25f7f9df2872189d57c21f1fa937d83b71536 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 8 Dec 2021 09:40:57 +0100 Subject: 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. --- CMake/options.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMake') diff --git a/CMake/options.cmake b/CMake/options.cmake index ccb253522..cad4b86e2 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -609,6 +609,15 @@ if (OPTION_FILESYSTEM_SUPPORT) endif (OPTION_FILESYSTEM_SUPPORT) ####################################################################### +####################################################################### +option (OPTION_USE_KDIALOG "Fl_Native_File_Chooser may run kdialog" ON) +if (OPTION_USE_KDIALOG) + set (USE_KDIALOG 1) +else () + set (USE_KDIALOG 0) +endif (OPTION_USE_KDIALOG) +####################################################################### + ####################################################################### option (OPTION_CREATE_ANDROID_STUDIO_IDE "create files needed to compile FLTK for Android" OFF) ####################################################################### -- cgit v1.2.3