From 9ce7a663d6d50c6f2d7a3fbc76ed10c5af6a91a5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 7 Jul 2015 09:38:48 -0400 Subject: [PATCH] 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. --- Utilities/Sphinx/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt index 77a12558a..1baca35e4 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)