From d7f1af876aa0540f945481183ee38a951934aeb3 Mon Sep 17 00:00:00 2001 From: AlexV Date: Tue, 6 May 2014 11:48:03 +0900 Subject: [PATCH] fixed network link library curl in win32 case : libcurl_imp --- cocos/network/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cocos/network/CMakeLists.txt b/cocos/network/CMakeLists.txt index 2c99d386c2..39c0caf0e7 100644 --- a/cocos/network/CMakeLists.txt +++ b/cocos/network/CMakeLists.txt @@ -25,6 +25,13 @@ set(COCOS_NETWORK_SRC ) set(COCOS_NETWORK_LINK +IF ( WIN32 ) +target_link_libraries(network + libcurl_imp + ${PLATFORM_LINK} +) +ELSE() curl ${PLATFORM_LINK} ) +ENDIF()