mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
Fix optional compile of File Provider module
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
b4b51cf141
commit
4d359bdb2a
3 changed files with 2 additions and 7 deletions
|
@ -187,11 +187,6 @@ else()
|
|||
unset(CMAKE_CXX_CLANG_TIDY)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
# build macOS File Provider module
|
||||
option(BUILD_FILE_PROVIDER_MODULE "BUILD_FILE_PROVIDER_MODULE" OFF)
|
||||
endif()
|
||||
|
||||
# When this option is enabled, 5xx errors are not added to the blacklist
|
||||
# Normally you don't want to enable this option because if a particular file
|
||||
# triggers a bug on the server, you want the file to be blacklisted.
|
||||
|
|
|
@ -78,5 +78,5 @@ if(WIN32)
|
|||
endif()
|
||||
|
||||
if (APPLE)
|
||||
set( BUILD_FILE_PROVIDER_MODULE OFF )
|
||||
option( BUILD_FILE_PROVIDER_MODULE "Build the macOS virtual files File Provider module" OFF )
|
||||
endif()
|
||||
|
|
|
@ -403,7 +403,7 @@ Application::Application(int &argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
#if (BUILD_FILE_PROVIDER_MODULE)
|
||||
#if defined(BUILD_FILE_PROVIDER_MODULE)
|
||||
_fileProvider.reset(new Mac::FileProvider);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue