mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
cmake: use namespaced custom target names
Rename custom target to namespaced (unique) names to avoid colliding with 3rd-party projects (e.g. libzip) built together with curl. Reported-by: hammlee96 on github Fixes #13324 Closes #13326
This commit is contained in:
parent
feb1a3527e
commit
3d569aaaf8
@ -38,7 +38,7 @@ if(BUILD_MISC_DOCS)
|
||||
DEPENDS "${_man_misc}.md"
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_target("generate-${_man_misc}.1" ALL DEPENDS "${_man_target}")
|
||||
add_custom_target("curl-generate-${_man_misc}.1" ALL DEPENDS "${_man_target}")
|
||||
if(NOT CURL_DISABLE_INSTALL)
|
||||
install(FILES "${_man_target}" DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||
endif()
|
||||
|
@ -73,7 +73,7 @@ add_custom_command(OUTPUT libcurl-symbols.md
|
||||
)
|
||||
|
||||
add_manual_pages(man_MANS)
|
||||
add_custom_target(man ALL DEPENDS ${man_MANS})
|
||||
add_custom_target(curl-man ALL DEPENDS ${man_MANS})
|
||||
if(NOT CURL_DISABLE_INSTALL)
|
||||
unset(_src)
|
||||
foreach(_f ${man_MANS})
|
||||
|
@ -26,8 +26,8 @@ transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.
|
||||
include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
||||
|
||||
add_manual_pages(man_MANS)
|
||||
add_custom_target(opts-man DEPENDS ${man_MANS})
|
||||
add_dependencies(man opts-man)
|
||||
add_custom_target(curl-opts-man DEPENDS ${man_MANS})
|
||||
add_dependencies(curl-man curl-opts-man)
|
||||
if(NOT CURL_DISABLE_INSTALL)
|
||||
unset(_src)
|
||||
foreach(_f ${man_MANS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user