curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to make CURL with Visual Studio and link to MT runtime library ?

From: Sergei Nikulov via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 14 Jun 2017 17:18:27 +0300

2017-06-14 16:35 GMT+03:00 Karlsson via curl-library
<curl-library_at_cool.haxx.se>:
> I also tried -DWITH_STATIC_RT=ON, but still not effect.
>
> On Wed, Jun 14, 2017 at 9:28 PM, Karlsson <boost.regex_at_gmail.com> wrote:
>>
>> Hi all,
>>
>> I've tried use below command to generate the Visual Studio SLN file:
>>
>> cmake ..
>> -G "Visual Studio 14 2015 Win64"
>> -DBUILD_SHARED_LIBS=OFF
>> -DCURL_STATICLIB=ON
>> -DOPENSSL_MSVC_STATIC_RT=ON
>> -DBUILD_SHARED_LIBS=OFF
>>

Hello,

Could you please try to add option -DCMAKE_C_CFLAGS=/MT when
generating the solution?

-- 
Best Regards,
Sergei Nikulov
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-14