cURL / Mailing Lists / curl-library / Single Mail


CURL_STATICLIB + Visual Studio + CMake

From: portfolis <>
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:
Received on 2014-06-29