From cd92098caa64b7fd30cdc6b5d56bf7e9e17a449e Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 19 Apr 2022 13:06:44 +0200 Subject: Avoid building all docs in nodoc build profile Differentiating between different types of documentation we build helps in better expressing what needs to be done for our arch:any and arch:all packages currently as well. --- vendor/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vendor') diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index 8246c725a..f6d88690a 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -10,6 +10,7 @@ else() endif() # Handle sources.list example +if (WITH_DOC OR WITH_DOC_EXAMPLES) add_vendor_file(OUTPUT sources.list INPUT "${CURRENT_VENDOR}/sources.list.in" MODE 644 @@ -21,6 +22,7 @@ add_vendor_file(OUTPUT sources.list current-codename) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sources.list DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples) +endif() # Handle apt.conf snippets file(GLOB conffiles ${CURRENT_VENDOR}/apt.conf-*) -- cgit v1.2.3-70-g09d2