diff --git a/CMakeLists.txt b/CMakeLists.txt index c8ea198202..9b1790d07d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()