Unverified Commit 0a2f9597 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

Cleanup doc cmake files (#4473)

parent 81d97948
...@@ -16,15 +16,15 @@ ...@@ -16,15 +16,15 @@
add_subdirectory(examples) add_subdirectory(examples)
if ("${NGRAPH_DOC_BUILD_ENABLE}" MATCHES "^ON$") if (NGRAPH_DOC_BUILD_ENABLE)
add_custom_target( docs add_custom_target(docs
COMMENT "Build all of the documentation types selected during CMake configuration." COMMENT "Build all of the documentation types selected during CMake configuration."
) )
add_subdirectory( doxygen ) add_subdirectory(doxygen)
add_subdirectory( sphinx ) add_subdirectory(sphinx)
else() else()
add_custom_target( docs add_custom_target(docs
COMMAND echo COMMAND echo
COMMAND echo "The 'docs' target is disabled. To enable the building of documentation, re-run cmake with the option -DNGRAPH_DOC_BUILD_ENABLE=ON." COMMAND echo "The 'docs' target is disabled. To enable the building of documentation, re-run cmake with the option -DNGRAPH_DOC_BUILD_ENABLE=ON."
COMMAND echo COMMAND echo
......
...@@ -15,14 +15,16 @@ ...@@ -15,14 +15,16 @@
# ****************************************************************************** # ******************************************************************************
find_package(Doxygen REQUIRED) find_package(Doxygen REQUIRED)
# include(FetchContent)
# include(${CMAKE_SOURCE_DIR}/cmake/doxygen.cmake)
if ("${NGRAPH_DOXYGEN_WARN_IF_UNDOCUMENTED}" MATCHES "^ON$") if (NGRAPH_DOXYGEN_WARN_IF_UNDOCUMENTED)
set(DOXYGEN_WARN_IF_UNDOCUMENTED YES) set(DOXYGEN_WARN_IF_UNDOCUMENTED YES)
else() else()
set(DOXYGEN_WARN_IF_UNDOCUMENTED NO) set(DOXYGEN_WARN_IF_UNDOCUMENTED NO)
endif() endif()
if ("${NGRAPH_DOXYGEN_QUIET}" MATCHES "^ON$") if (NGRAPH_DOXYGEN_QUIET)
set(DOXYGEN_QUIET YES) set(DOXYGEN_QUIET YES)
else() else()
set(DOXYGEN_QUIET NO) set(DOXYGEN_QUIET NO)
...@@ -39,7 +41,7 @@ add_custom_target(doxygen-docs ...@@ -39,7 +41,7 @@ add_custom_target(doxygen-docs
COMMENT "Generating documentation with Doxygen" COMMENT "Generating documentation with Doxygen"
VERBATIM ) VERBATIM )
add_dependencies( docs doxygen-docs ) add_dependencies(docs doxygen-docs)
install( install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/" DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment