]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: enable `ENABLE_CURL_MANUAL` by default
authorViktor Szakats <commit@vsz.me>
Wed, 6 Mar 2024 22:24:56 +0000 (22:24 +0000)
committerViktor Szakats <commit@vsz.me>
Thu, 7 Mar 2024 09:13:36 +0000 (09:13 +0000)
Meaning `curl.1` and `src/tool_hugehelp.c` are built by default,
and `--manual` in curl tool is also enabled by default.

This syncs behaviour with autotools.

For a reproducible `curl.1`, `SOURCE_DATE_EPOCH` needs to be set
to a consistent date, e.g. the timestamp of `CHANGES`.

A pre-built manual (e.g. the one distributed in the official source
tarball) will be ignored and rebuilt after this patch, unless
explicitly disabling this option.

Fixes #13028
Closes #13069

CMakeLists.txt

index 2c69e5628c865c69ed0e579d87fc04f9452b2ba5..656aa7c740facf584a618c2d2d4769d9d683a92c 100644 (file)
@@ -307,8 +307,7 @@ endif()
 find_package(Perl)
 
 option(BUILD_LIBCURL_DOCS "to build libcurl man pages" ON)
-# curl source release tarballs come with the curl man page pre-built.
-option(ENABLE_CURL_MANUAL "to build the man page for curl and enable its -M/--manual option" OFF)
+option(ENABLE_CURL_MANUAL "to build the man page for curl and enable its -M/--manual option" ON)
 
 if(ENABLE_CURL_MANUAL OR BUILD_LIBCURL_DOCS)
   if(PERL_FOUND)