docs: install curl.1 with cmake as well

Closes #12759
This commit is contained in:
Richard Levitte 2024-01-22 22:49:17 +01:00 committed by Daniel Stenberg
parent e17b89db8f
commit fe290cbadd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -31,4 +31,7 @@ add_custom_command(OUTPUT "${MANPAGE}"
COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && "${PERL_EXECUTABLE}" "./gen.pl" mainpage ${DPAGES} > "${MANPAGE}"
VERBATIM
)
add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")
add_custom_target(generate-curl.1 ALL DEPENDS "${MANPAGE}")
if(NOT CURL_DISABLE_INSTALL)
install(FILES "${MANPAGE}" DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif()