From 232e8fafeeacfea0b239ad476967267fb64e7abe Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 30 Oct 2024 16:31:11 -0400 Subject: [PATCH] doc: correct target for documents --- CMakeLists.txt | 2 -- doc/CMakeLists.txt | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e83fd4667..2c2d5844c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index b8169f7a5..865366664 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -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 )