mirror of
https://github.com/curl/curl.git
synced 2026-08-03 19:50:30 +03:00
Cleaned up the custom definition I added (replaced by CURL_STATICLIB)
This commit is contained in:
parent
4cd950900b
commit
4d396169c8
4 changed files with 10 additions and 8 deletions
|
|
@ -13,7 +13,11 @@ FUNCTION(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
|
|||
SETUP_CURL_DEPENDENCIES(${TEST_NAME})
|
||||
#TARGET_LINK_LIBRARIES( ${TEST_NAME} libcurl )
|
||||
|
||||
SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES COMPILE_DEFINITIONS USES_DIRECT_CURL_UTILITIES) # ${UPPER_TEST_NAME}
|
||||
# Here we define CURL_STATICLIB if not already done. This is a hacky way to avoid symbols from libcrul to be exported/imported, since we do NOT link against libcurl, but include directly some source files.
|
||||
# Please note this is specific to those tests.
|
||||
IF(NOT CURL_STATICLIB)
|
||||
SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES COMPILE_DEFINITIONS CURL_STATICLIB) # ${UPPER_TEST_NAME}
|
||||
ENDIF()
|
||||
SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL_PREFIX}${TEST_NAME}")
|
||||
|
||||
# Add the postfix to the executable since it is not added automatically as for modules and shared libraries
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue