Fix optional compile of File Provider module

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-07-20 18:18:55 +08:00
parent b4b51cf141
commit 4d359bdb2a
3 changed files with 2 additions and 7 deletions

View file

@ -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.

View file

@ -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()

View file

@ -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