Make CMake BUILD_FILE_PROVIDER_MODULE option only available on Apple
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 15 Mar 2023 15:32:18 +0000 (16:32 +0100)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 12 May 2023 05:29:53 +0000 (13:29 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
CMakeLists.txt

index 1b7a0c584d72c555155807a18080b6e0693fb282..d38c8169c5b26248205d5dd108dd37e0f97611d1 100644 (file)
@@ -187,8 +187,10 @@ else()
     unset(CMAKE_CXX_CLANG_TIDY)
 endif()
 
-# build macOS File Provider module
-option(BUILD_FILE_PROVIDER_MODULE "BUILD_FILE_PROVIDER_MODULE" ON)
+if (APPLE)
+    # build macOS File Provider module
+    option(BUILD_FILE_PROVIDER_MODULE "BUILD_FILE_PROVIDER_MODULE" ON)
+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