From: Viktor Szakats Date: Tue, 15 Apr 2025 23:26:53 +0000 (+0200) Subject: cmake: do not install `mk-ca-bundle` script and manpage X-Git-Tag: curl-8_14_0~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe408ccd767582e6e39054de62ef235628b8655;p=thirdparty%2Fcurl.git cmake: do not install `mk-ca-bundle` script and manpage To sync with autotools builds. Reported-by: Daniel Stenberg Bug: https://github.com/curl/curl/pull/17035#pullrequestreview-2769964979 Follow-up to 5023ffad2c27d4b916ddb91800f99ecc5d3aad07 #13197 Closes #17068 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bb645ac372..377ed73e8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2494,13 +2494,6 @@ if(NOT CURL_DISABLE_INSTALL) COMMAND ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/CMake/cmake_uninstall.cmake") endif() - install(FILES "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl" - DESTINATION ${CMAKE_INSTALL_BINDIR} - PERMISSIONS - OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE - WORLD_READ WORLD_EXECUTE) - # The `-DEV` part is important string(REGEX REPLACE "([0-9]+\.[0-9]+)\.([0-9]+.*)" "\\2" CPACK_PACKAGE_VERSION_PATCH "${_curl_version}") set(CPACK_GENERATOR "TGZ") diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index fa28f06253..fd5f1522a2 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -39,7 +39,7 @@ if(BUILD_MISC_DOCS) VERBATIM ) add_custom_target("curl-generate-${_man_misc}.1" ALL DEPENDS "${_man_target}") - if(NOT CURL_DISABLE_INSTALL) + if(NOT CURL_DISABLE_INSTALL AND NOT _man_misc STREQUAL "mk-ca-bundle") install(FILES "${_man_target}" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") endif() endforeach()