Update CMakeLists.txt
authorJürgen Weigert <jnweiger@gmail.com>
Wed, 27 Sep 2017 16:37:45 +0000 (18:37 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:38 +0000 (22:01 +0200)
Make admin folder optional. It is needed for osx, but it is deleted from Linux builds for the sake of easier license review as discussed in https://github.com/owncloud/client/issues/6005

CMakeLists.txt

index c8ea1982023dba30bc16168bab8bf427109255ea..9b1790d07d2616cb7a53de53f5823399da6963e1 100644 (file)
@@ -245,7 +245,9 @@ if(BUILD_CLIENT)
     if(NOT BUILD_LIBRARIES_ONLY)
         add_subdirectory(doc)
         add_subdirectory(doc/dev)
-        add_subdirectory(admin)
+        if(IS_DIRECTORY admin)
+            add_subdirectory(admin)
+        endif(IS_DIRECTORY admin)
     endif(NOT BUILD_LIBRARIES_ONLY)
 endif()