1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

cmake: make libcurl output filename configurable

Reviewed-by: Jakub Zakrzewski
Closes #6933
This commit is contained in:
Ralph Langendam 2021-04-22 17:29:45 +02:00 committed by Daniel Stenberg
parent a4554b2c5e
commit a60b111980
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -20,6 +20,7 @@
#
###########################################################################
set(LIB_NAME libcurl)
set(LIBCURL_OUTPUT_NAME libcurl CACHE STRING "Basename of the curl library")
if(BUILD_SHARED_LIBS)
set(CURL_STATICLIB NO)
@ -98,7 +99,10 @@ if(WIN32)
add_definitions(-D_USRDLL)
endif()
set_target_properties(${LIB_NAME} PROPERTIES COMPILE_DEFINITIONS BUILDING_LIBCURL)
set_target_properties(${LIB_NAME} PROPERTIES
COMPILE_DEFINITIONS BUILDING_LIBCURL
OUTPUT_NAME ${LIBCURL_OUTPUT_NAME}
)
if(HIDES_CURL_PRIVATE_SYMBOLS)
set_property(TARGET ${LIB_NAME} APPEND PROPERTY COMPILE_DEFINITIONS "CURL_HIDDEN_SYMBOLS")