瀏覽代碼

Make CMake BUILD_FILE_PROVIDER_MODULE option only available on Apple

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra 2 年之前
父節點
當前提交
a85d93450a
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      CMakeLists.txt

+ 4 - 2
CMakeLists.txt

@@ -187,8 +187,10 @@ else()
     unset(CMAKE_CXX_CLANG_TIDY)
     unset(CMAKE_CXX_CLANG_TIDY)
 endif()
 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
 # 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
 # Normally you don't want to enable this option because if a particular file