Good day I want to build static version of curl. So, I've found option 'option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF)' in CMakeLists.txt of curl and changed it to "ON".
And then I've got error: "unresolved external symbol __imp__curl_version". Then I've googled solution - to add "CURL_STATICLIB" to compiler flags. And it works. But there is another question: why I can't simply change curl's option? (without defining global flag for all projects under CMake)
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
