doc: correct target for documents

This commit is contained in:
sithlord48
2024-10-30 16:31:11 -04:00
committed by Nick Bolton
parent fb686ede21
commit 232e8fafee
2 changed files with 3 additions and 5 deletions

View File

@ -87,9 +87,7 @@ configure_build()
configure_libs()
configure_packaging()
option(BUILD_DOCS "Build documentation" ON)
add_subdirectory(doc)
add_subdirectory(src)
post_config_all()

View File

@ -2,9 +2,9 @@
# SPDX-License-Identifier: MIT
find_package(Doxygen QUIET)
option(DOCS "Build and Install Documents" ${DOXYGEN_FOUND})
option(BUILD_DOCS "Build and Install Documents" ${DOXYGEN_FOUND})
if(DOCS)
if(BUILD_DOCS)
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_STRIP_FROM_PATH ${CMAKE_SOURCE_DIR})
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
@ -15,7 +15,7 @@ if(DOCS)
doxygen_add_docs(user-docs ${CMAKE_SOURCE_DIR}/doc COMMENT "Generating User Documentation" ALL)
# HACK Only these will show in your IDE
target_sources(docs PRIVATE
target_sources(user-docs PRIVATE
mainpage.md
configuration.md
)