Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@@ -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
@@ -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