cmake: add option to disable building docs
This commit is contained in:
parent
ea0b575dab
commit
3f08d80b22
@ -54,11 +54,13 @@ add_custom_command(OUTPUT libcurl-symbols.md
|
|||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
|
||||||
add_manual_pages(man_MANS)
|
if(BUILD_DOCS)
|
||||||
add_custom_target(man ALL DEPENDS ${man_MANS})
|
add_manual_pages(man_MANS)
|
||||||
if(NOT CURL_DISABLE_INSTALL)
|
add_custom_target(man ALL DEPENDS ${man_MANS})
|
||||||
|
if(NOT CURL_DISABLE_INSTALL)
|
||||||
install(FILES "$<LIST:TRANSFORM,${man_MANS},PREPEND,${CMAKE_CURRENT_BINARY_DIR}/>"
|
install(FILES "$<LIST:TRANSFORM,${man_MANS},PREPEND,${CMAKE_CURRENT_BINARY_DIR}/>"
|
||||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(opts)
|
add_subdirectory(opts)
|
||||||
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user