mirror of
https://github.com/curl/curl.git
synced 2026-08-04 18:26:13 +03:00
cmake: do not install wcurl when BUILD_CURL_EXE=OFF
Skip installing `wcurl.1` also.
Reported-by: Daniel Schulte
Fixes #21458
Follow-up to 23bed347b3 #17035
Closes #21459
This commit is contained in:
parent
931ac3085a
commit
74542c1f4b
2 changed files with 14 additions and 7 deletions
|
|
@ -2428,12 +2428,14 @@ if(NOT CURL_DISABLE_INSTALL)
|
|||
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/CMake/cmake_uninstall.cmake")
|
||||
endif()
|
||||
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/scripts/wcurl"
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
PERMISSIONS
|
||||
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
||||
GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE)
|
||||
if(BUILD_CURL_EXE)
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/scripts/wcurl"
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
PERMISSIONS
|
||||
OWNER_READ OWNER_WRITE OWNER_EXECUTE
|
||||
GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE)
|
||||
endif()
|
||||
|
||||
# The `-DEV` part is important
|
||||
string(REGEX REPLACE "([0-9]+\.[0-9]+)\.([0-9]+.*)" "\\2" CPACK_PACKAGE_VERSION_PATCH "${_curl_version}")
|
||||
|
|
|
|||
|
|
@ -30,7 +30,12 @@ if(ENABLE_CURL_MANUAL AND BUILD_CURL_EXE)
|
|||
endif()
|
||||
|
||||
if(BUILD_MISC_DOCS)
|
||||
foreach(_man_misc IN ITEMS "curl-config" "mk-ca-bundle" "wcurl" "runtests" "testcurl")
|
||||
set(_man_targets "curl-config" "mk-ca-bundle" "runtests" "testcurl")
|
||||
if(BUILD_CURL_EXE)
|
||||
list(APPEND _man_targets "wcurl")
|
||||
endif()
|
||||
|
||||
foreach(_man_misc IN LISTS _man_targets)
|
||||
set(_man_target "${CMAKE_CURRENT_BINARY_DIR}/${_man_misc}.1")
|
||||
add_custom_command(OUTPUT "${_man_target}"
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue