]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: when USE_MANUAL=YES, build the curl.1 man page
authorDaniel Stenberg <daniel@haxx.se>
Fri, 19 Jan 2024 14:03:50 +0000 (15:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Jan 2024 17:14:56 +0000 (18:14 +0100)
Fixes KNOWN_BUG 15.4

Closes #12742

docs/KNOWN_BUGS
docs/cmdline-opts/CMakeLists.txt

index 254bc8479f5c170f1bf1b03a46a65e2e165b36e1..f91ff63bb6408f0e41b211b2a66d01dbdb177ab2 100644 (file)
@@ -92,7 +92,6 @@ problems may have been fixed or changed somewhat since this was written.
  15.1 cmake outputs: no version information available
  15.2 support build with GnuTLS
  15.3 unusable tool_hugehelp.c with MinGW
- 15.4 build docs/curl.1
  15.6 uses -lpthread instead of Threads::Threads
  15.7 generated .pc file contains strange entries
  15.8 libcurl.pc uses absolute library paths
@@ -528,12 +527,6 @@ problems may have been fixed or changed somewhat since this was written.
 
  see https://github.com/curl/curl/issues/3125
 
-15.4 build docs/curl.1
-
- The cmake build does not create the docs/curl.1 file and therefore must rely on
- it being there already. This makes the --manual option not work and test
- cases like 1139 cannot function.
-
 15.6 uses -lpthread instead of Threads::Threads
 
  See https://github.com/curl/curl/issues/6166
index 3dd8be49b19b0718ef8f5b6bbc991e2f021a6a43..e6221855f94a54dc7a9ed34a0291b7b00927f027 100644 (file)
@@ -28,8 +28,7 @@ transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.
 include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
 
 add_custom_command(OUTPUT "${MANPAGE}"
-  COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}"
-  DEPENDS ${DPAGES} ${OTHERPAGES}
+  COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && "${PERL_EXECUTABLE}" "./gen.pl" mainpage ${DPAGES} > "${MANPAGE}"
   VERBATIM
 )
 add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")