From: Claudio Cambra Date: Wed, 17 May 2023 06:19:34 +0000 (+0800) Subject: Fix macOS build when file provider module build is disabled X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~24^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8c795d5dc7f02e3ab5f91e5b496590675f44d810;p=nextcloud-desktop.git Fix macOS build when file provider module build is disabled Signed-off-by: Claudio Cambra --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d38c8169c..4a644e6e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,7 @@ endif() if (APPLE) # build macOS File Provider module option(BUILD_FILE_PROVIDER_MODULE "BUILD_FILE_PROVIDER_MODULE" ON) + add_definitions(-DBUILD_FILE_PROVIDER_MODULE=${BUILD_FILE_PROVIDER_MODULE}) endif() # When this option is enabled, 5xx errors are not added to the blacklist diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 0db5f96d1..3c112b90c 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -403,7 +403,7 @@ Application::Application(int &argc, char **argv) } } -#if defined(Q_OS_MACOS) +#if defined(BUILD_FILE_PROVIDER_MODULE) _fileProvider.reset(new Mac::FileProvider); #endif