Skip to content

Commit

Permalink
Add an option to disable docs when building
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Jan 8, 2021
1 parent 0253110 commit 8143cc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/IgnCreateDocs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ function(ign_create_docs)
set(oneValueArgs API_MAINPAGE_MD AUTOGENERATED_DOC TUTORIALS_MAINPAGE_MD)
set(multiValueArgs "TAGFILES" "ADDITIONAL_INPUT_DIRS")

option(IGN_BUILD_DOCS "Build docs" ON)
if (NOT ${IGN_BUILD_DOCS})
message(STATUS "Building Documentation disabled via IGN_BUILD_DOCS")
return()
endif()

#------------------------------------
# Parse the arguments
_ign_cmake_parse_arguments(ign_create_docs "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
Expand Down

0 comments on commit 8143cc8

Please sign in to comment.