Fix testing of curl on windows
This commit is contained in:
parent
aeb0865810
commit
a0ffb9293f
|
@ -276,7 +276,7 @@ IF(BUILD_TESTING)
|
||||||
ADD_TEST(curl ${CMake_BINARY_DIR}/Source/cmaketest
|
ADD_TEST(curl ${CMake_BINARY_DIR}/Source/cmaketest
|
||||||
${CMake_SOURCE_DIR}/Source/CTest/Curl
|
${CMake_SOURCE_DIR}/Source/CTest/Curl
|
||||||
${CMake_BINARY_DIR}/Tests/Curl
|
${CMake_BINARY_DIR}/Tests/Curl
|
||||||
curltest)
|
LIBCURL)
|
||||||
|
|
||||||
IF (APPLE)
|
IF (APPLE)
|
||||||
ADD_TEST(objc++ ${CMake_BINARY_DIR}/Source/cmaketest
|
ADD_TEST(objc++ ${CMake_BINARY_DIR}/Source/cmaketest
|
||||||
|
|
|
@ -356,5 +356,5 @@ IF(CURL_TESTING)
|
||||||
SUBDIRS(Testing)
|
SUBDIRS(Testing)
|
||||||
ENDIF(CURL_TESTING)
|
ENDIF(CURL_TESTING)
|
||||||
|
|
||||||
ADD_EXECUTABLE(curltest Testing/curltest.c)
|
ADD_EXECUTABLE(LIBCURL Testing/curltest.c)
|
||||||
TARGET_LINK_LIBRARIES(curltest Curl)
|
TARGET_LINK_LIBRARIES(LIBCURL Curl)
|
|
@ -1,4 +1,6 @@
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
|
SET(HAVE_LIBWINMM 1)
|
||||||
|
SET(HAVE_LIBWS2_32 1)
|
||||||
SET(HAVE_GETHOSTNAME 1)
|
SET(HAVE_GETHOSTNAME 1)
|
||||||
SET(HAVE_GETHOSTBYADDR 1)
|
SET(HAVE_GETHOSTBYADDR 1)
|
||||||
SET(HAVE_GETSERVBYNAME 1)
|
SET(HAVE_GETSERVBYNAME 1)
|
||||||
|
|
Loading…
Reference in New Issue