cmake: use LIB_NAME in curl-config.cmake.in

Cherry-picked from #16973
Closes #17195
This commit is contained in:
Viktor Szakats 2025-04-26 09:17:32 +02:00
parent 54ef546ec4
commit f9eb9e5e23
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 9 additions and 5 deletions

View file

@ -21,8 +21,9 @@
# SPDX-License-Identifier: curl
#
###########################################################################
set(LIB_NAME "libcurl")
set(LIBCURL_OUTPUT_NAME "libcurl" CACHE STRING "Basename of the curl library")
set(LIBCURL_OUTPUT_NAME "${LIB_NAME}" CACHE STRING "Basename of the curl library")
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "BUILDING_LIBCURL")
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "${CURL_DEBUG_MACROS}")