Fix macOS build when file provider module build is disabled

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-17 14:19:34 +08:00 committed by Matthieu Gallien
parent 34792e080c
commit 43a21717fa
2 changed files with 2 additions and 1 deletions

View file

@ -190,6 +190,7 @@ endif()
if (APPLE) if (APPLE)
# build macOS File Provider module # build macOS File Provider module
option(BUILD_FILE_PROVIDER_MODULE "BUILD_FILE_PROVIDER_MODULE" ON) option(BUILD_FILE_PROVIDER_MODULE "BUILD_FILE_PROVIDER_MODULE" ON)
add_definitions(-DBUILD_FILE_PROVIDER_MODULE=${BUILD_FILE_PROVIDER_MODULE})
endif() endif()
# When this option is enabled, 5xx errors are not added to the blacklist # When this option is enabled, 5xx errors are not added to the blacklist

View file

@ -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); _fileProvider.reset(new Mac::FileProvider);
#endif #endif