mirror of
https://github.com/curl/curl.git
synced 2026-08-26 03:43:31 +03:00
cmake: make libcurl output filename configurable
Reviewed-by: Jakub Zakrzewski Closes #6933
This commit is contained in:
parent
a4554b2c5e
commit
a60b111980
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue