[1.5] revert build documentation behaviour in cmake

This commit is contained in:
Antonin Descampe 2012-02-07 08:08:58 +00:00
parent 995b145f09
commit 46da9f2294
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ CONFIGURE_FILE("${OPENJPEG_SOURCE_DIR}/opj_config.h.cmake.in"
#-----------------------------------------------------------------------------
# Build DOCUMENTATION (not in ALL target and only if Doxygen is found)
OPTION(BUILD_DOC "Build the HTML documentation (with doxygen if available)." ON)
OPTION(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF)
IF(BUILD_DOC)
ADD_SUBDIRECTORY(doc)
ENDIF(BUILD_DOC)

View File

@ -11,7 +11,7 @@ IF(DOXYGEN_FOUND)
${CMAKE_BINARY_DIR}/doc/Doxyfile-html.dox @ONLY)
# Generate new target to build the html documentation
ADD_CUSTOM_TARGET(doc
ADD_CUSTOM_TARGET(doc ALL
${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/doc/Doxyfile-html.dox)
ELSE(DOXYGEN_FOUND)