diff --git a/cocos/network/CMakeLists.txt b/cocos/network/CMakeLists.txt index f359cfa978..5bcf40d79e 100644 --- a/cocos/network/CMakeLists.txt +++ b/cocos/network/CMakeLists.txt @@ -24,14 +24,14 @@ set(COCOS_NETWORK_SRC ${PLATFORM_SRC} ) -IF ( WIN32 ) -set(COCOS_NETWORK_LINK - libcurl_imp - ${PLATFORM_LINK} -) +IF (WIN32 AND NOT MINGW) + set(COCOS_NETWORK_LINK + libcurl_imp + ${PLATFORM_LINK} + ) ELSE() -set(COCOS_NETWORK_LINK - curl - ${PLATFORM_LINK} -) + set(COCOS_NETWORK_LINK + curl + ${PLATFORM_LINK} + ) ENDIF()