|
Boost-Commit : |
From: dgregor_at_[hidden]
Date: 2008-05-24 11:52:38
Author: dgregor
Date: 2008-05-24 11:52:38 EDT (Sat, 24 May 2008)
New Revision: 45711
URL: http://svn.boost.org/trac/boost/changeset/45711
Log:
Turn of BUILD_DOCUMENTATION if it isn't going to work
Text files modified:
branches/CMake/release/tools/build/CMake/BoostDocs.cmake | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
Modified: branches/CMake/release/tools/build/CMake/BoostDocs.cmake
==============================================================================
--- branches/CMake/release/tools/build/CMake/BoostDocs.cmake (original)
+++ branches/CMake/release/tools/build/CMake/BoostDocs.cmake 2008-05-24 11:52:38 EDT (Sat, 24 May 2008)
@@ -83,8 +83,6 @@
DEPENDS ${OUTPUT})
endif()
endif()
-
- # set_source_files_properties(${OUTPUT} PROPERTIES GENERATED TRUE)
endmacro(xsl_transform)
macro(boost_add_documentation SOURCE)
@@ -269,3 +267,22 @@
endif()
+if (BUILD_DOCUMENTATION)
+ set(BUILD_DOCUMENTATION_OKAY TRUE)
+ if (NOT XSLTPROC)
+ set(BUILD_DOCUMENTATION_OKAY FALSE)
+ elseif (NOT DOCBOOK_DTD_DIR)
+ set(BUILD_DOCUMENTATION_OKAY FALSE)
+ elseif (NOT DOCBOOK_XSL_DIR)
+ set(BUILD_DOCUMENTATION_OKAY FALSE)
+ else()
+ set(BUILD_DOCUMENTATION_OKAY TRUE)
+ endif()
+
+ if (NOT BUILD_DOCUMENTATION_OKAY)
+ if (BUILD_DOCUMENTATION)
+ set(BUILD_DOCUMENTATION OFF CACHE BOOL
+ "Whether to build library documentation" FORCE)
+ endif()
+ endif()
+endif()
\ No newline at end of file
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk