cmake: add option to disable building docs

This commit is contained in:
Viktor Szakats 2024-01-22 23:16:54 +01:00 committed by Daniel Stenberg
parent ea0b575dab
commit 3f08d80b22
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -54,6 +54,7 @@ add_custom_command(OUTPUT libcurl-symbols.md
VERBATIM VERBATIM
) )
if(BUILD_DOCS)
add_manual_pages(man_MANS) add_manual_pages(man_MANS)
add_custom_target(man ALL DEPENDS ${man_MANS}) add_custom_target(man ALL DEPENDS ${man_MANS})
if(NOT CURL_DISABLE_INSTALL) if(NOT CURL_DISABLE_INSTALL)
@ -62,3 +63,4 @@ if(NOT CURL_DISABLE_INSTALL)
endif() endif()
add_subdirectory(opts) add_subdirectory(opts)
endif()