浏览代码

Utilities/Sphinx: Add CMake_OPTIONAL_COMPONENT macro

When building this directory independently define the macro since we
will not get the definition from the top level of the source tree.
Brad King 10 年之前
父节点
当前提交
9ce7a663d6
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Utilities/Sphinx/CMakeLists.txt

+ 3 - 0
Utilities/Sphinx/CMakeLists.txt

@@ -19,6 +19,9 @@ if(NOT CMake_SOURCE_DIR)
   include(${CMake_SOURCE_DIR}/Source/CMakeInstallDestinations.cmake)
   unset(CMAKE_DATA_DIR)
   unset(CMAKE_DATA_DIR CACHE)
+  macro(CMake_OPTIONAL_COMPONENT)
+    set(COMPONENT "")
+  endmacro()
 endif()
 project(CMakeHelp NONE)