mirror of
https://github.com/curl/curl.git
synced 2026-07-28 13:03:07 +03:00
drop redundant HAVE_MANUAL_TOOLS interim variable
This commit is contained in:
parent
30daac9f2f
commit
29e766292a
2 changed files with 4 additions and 9 deletions
|
|
@ -532,13 +532,8 @@ option(BUILD_LIBCURL_DOCS "Build libcurl man pages" ON)
|
|||
option(BUILD_MISC_DOCS "Build misc man pages (e.g. curl-config and mk-ca-bundle)" ON)
|
||||
option(ENABLE_CURL_MANUAL "Build the man page for curl and enable its -M/--manual option" ON)
|
||||
|
||||
if(ENABLE_CURL_MANUAL OR BUILD_LIBCURL_DOCS)
|
||||
if(PERL_FOUND)
|
||||
set(HAVE_MANUAL_TOOLS ON)
|
||||
endif()
|
||||
if(NOT HAVE_MANUAL_TOOLS)
|
||||
message(WARNING "Perl not found. Will not build manuals.")
|
||||
endif()
|
||||
if((ENABLE_CURL_MANUAL OR BUILD_LIBCURL_DOCS) AND NOT PERL_FOUND)
|
||||
message(WARNING "Perl not found. Will not build manuals.")
|
||||
endif()
|
||||
|
||||
# If we are on AIX, do the _ALL_SOURCE magic
|
||||
|
|
@ -2034,7 +2029,7 @@ else()
|
|||
set(CURL_BUILD_TESTING OFF)
|
||||
endif()
|
||||
|
||||
if(HAVE_MANUAL_TOOLS)
|
||||
if(PERL_FOUND)
|
||||
set(CURL_MANPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.1")
|
||||
set(CURL_ASCIIPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.txt")
|
||||
add_subdirectory(docs)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ set(_curl_cfiles_gen "")
|
|||
set(_curl_hfiles_gen "")
|
||||
set(_curl_definitions "")
|
||||
|
||||
if(ENABLE_CURL_MANUAL AND HAVE_MANUAL_TOOLS)
|
||||
if(ENABLE_CURL_MANUAL AND PERL_FOUND)
|
||||
list(APPEND _curl_definitions "USE_MANUAL")
|
||||
add_custom_command(OUTPUT "tool_hugehelp.c"
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "#include \"tool_setup.h\"" > "tool_hugehelp.c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue