curl / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Karlsson via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 14 Jun 2017 22:42:58 +0800

Thanks Sergei, below is the output:

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_C_CFLAGS
    WITH_STATIC_RT

It's still MD and MDd

On Wed, Jun 14, 2017 at 10:18 PM, Sergei Nikulov <sergey.nikulov_at_gmail.com>
wrote:

> 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