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:
parent
a4554b2c5e
commit
a60b111980
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user