curl-library
CURL_STATICLIB + Visual Studio + CMake
From: portfolis <portfolis92_at_gmail.com>
Date: Sun, 29 Jun 2014 02:54:52 +0300
Date: Sun, 29 Jun 2014 02:54:52 +0300
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
Received on 2014-06-29