From 4d396169c8f8f604e57fecb0b8624d0b424c1ea8 Mon Sep 17 00:00:00 2001 From: Benoit Neil Date: Thu, 9 Apr 2009 19:59:38 +0000 Subject: Cleaned up the custom definition I added (replaced by CURL_STATICLIB) --- tests/server/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/server/CMakeLists.txt') diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt index 1df7edb76..13c20b037 100644 --- a/tests/server/CMakeLists.txt +++ b/tests/server/CMakeLists.txt @@ -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 -- cgit v1.2.3