diff options
author | Benoit Neil <suky0001@free.fr> | 2009-04-09 19:59:38 +0000 |
---|---|---|
committer | Benoit Neil <suky0001@free.fr> | 2009-04-09 19:59:38 +0000 |
commit | 4d396169c8f8f604e57fecb0b8624d0b424c1ea8 (patch) | |
tree | 17971a7532340bf53df6b82693103c218799982c /tests/server/CMakeLists.txt | |
parent | 4cd950900b2f29ce3c03b8b5c1e070afb8f32c08 (diff) | |
download | curl-4d396169c8f8f604e57fecb0b8624d0b424c1ea8.tar.gz |
Cleaned up the custom definition I added (replaced by CURL_STATICLIB)
Diffstat (limited to 'tests/server/CMakeLists.txt')
-rw-r--r-- | tests/server/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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 |