]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: install curl.1 with cmake as well
authorRichard Levitte <richard@levitte.org>
Mon, 22 Jan 2024 21:49:17 +0000 (22:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 Jan 2024 22:55:08 +0000 (23:55 +0100)
Closes #12759

docs/cmdline-opts/CMakeLists.txt

index e6221855f94a54dc7a9ed34a0291b7b00927f027..ee158df993a0b1ca0a9109ea1aca9abaff38ab12 100644 (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()