summaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2018-07-10 12:54:34 +0300
committerDaniel Stenberg <daniel@haxx.se>2018-08-08 09:39:05 +0200
commitc892795ea3601a6d210a325b2ac566b1c30d3334 (patch)
treee592d99b424df310ccff5a45dd602aba91af4062 /tests/server
parentf826b4ce980014550da752a87fa86cc3d7e50b97 (diff)
downloadgnurl-c892795ea3601a6d210a325b2ac566b1c30d3334.tar.gz
gnurl-c892795ea3601a6d210a325b2ac566b1c30d3334.tar.bz2
gnurl-c892795ea3601a6d210a325b2ac566b1c30d3334.zip
CMake: Respect BUILD_SHARED_LIBS
Use standard CMake variable BUILD_SHARED_LIBS instead of introducing custom option CURL_STATICLIB. Use '-DBUILD_SHARED_LIBS=%SHARED%' in appveyor.yml. Reviewed-by: Sergei Nikulov Closes #2755
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt
index 9b5714d20..9d2a43164 100644
--- a/tests/server/CMakeLists.txt
+++ b/tests/server/CMakeLists.txt
@@ -25,7 +25,7 @@ function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
# to build the servers. In order to achieve proper linkage of these
# files on Win32 targets it is necessary to build the test servers
# with CURL_STATICLIB defined, independently of how libcurl is built.
- if(NOT CURL_STATICLIB)
+ if(BUILD_SHARED_LIBS)
set_target_properties(${TEST_NAME} PROPERTIES
COMPILE_DEFINITIONS CURL_STATICLIB) # ${UPPER_TEST_NAME}
endif()