summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-07 13:38:48 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-07 13:38:48 (GMT)
commit9ce7a663d6d50c6f2d7a3fbc76ed10c5af6a91a5 (patch)
treed2336f0cd30c152046f669ae46aeb864478e4b51 /Utilities
parentd7725a178bd498f7b50634490b6846ab9bb245f2 (diff)
downloadCMake-9ce7a663d6d50c6f2d7a3fbc76ed10c5af6a91a5.zip
CMake-9ce7a663d6d50c6f2d7a3fbc76ed10c5af6a91a5.tar.gz
CMake-9ce7a663d6d50c6f2d7a3fbc76ed10c5af6a91a5.tar.bz2
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.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index 77a1255..1baca35 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/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)