[1.5] revert build documentation behaviour in cmake
This commit is contained in:
parent
995b145f09
commit
46da9f2294
|
@ -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)
|
# 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)
|
IF(BUILD_DOC)
|
||||||
ADD_SUBDIRECTORY(doc)
|
ADD_SUBDIRECTORY(doc)
|
||||||
ENDIF(BUILD_DOC)
|
ENDIF(BUILD_DOC)
|
||||||
|
|
|
@ -11,7 +11,7 @@ IF(DOXYGEN_FOUND)
|
||||||
${CMAKE_BINARY_DIR}/doc/Doxyfile-html.dox @ONLY)
|
${CMAKE_BINARY_DIR}/doc/Doxyfile-html.dox @ONLY)
|
||||||
|
|
||||||
# Generate new target to build the html documentation
|
# 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)
|
${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/doc/Doxyfile-html.dox)
|
||||||
|
|
||||||
ELSE(DOXYGEN_FOUND)
|
ELSE(DOXYGEN_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue