Building with MD and sandbox

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Building with MD and sandbox

Postby fr3nzy » Wed Jan 31, 2018 6:31 am

Hello,

Currently I have a working Visual Studio solution (simpilified) with libcef_dll_wrapper and cefsimple (just for testing) projects.
Due to design the end application will link with many libraries that are build with /MD(d) compiler flag and it requires sandbox.

Is it possible (just for example purposes) to set cefsimple application to /MD(d)? If so, how?

I alredy tried setting /MD(d) in cmake script before creating solution, googling returns mixed responses, none of which were successful.
According to wiki https://bitbucket.org/chromiumembedded/cef/wiki/LinkingDifferentRunTimeLibraries it should be possible.

CEF Version is: 3.3239.1723.g071d1c1
fr3nzy
Techie
 
Posts: 13
Joined: Tue Sep 12, 2017 5:47 am

Re: Building with MD and sandbox

Postby Czarek » Wed Jan 31, 2018 9:56 am

In CEF Python when building libcef wrapper library I replace "/MT" with "/MD /wd4275" (similarly for debug) in "cmake/cef_variables.cmake" file and after that I run cmake to create projects. Works fine for me.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Building with MD and sandbox

Postby fr3nzy » Fri May 18, 2018 12:35 am

Thank you for the proposed workaround, instead i have retained compiler flags for wrapper library, but adapted flags in library which consumes the wrapper library.
fr3nzy
Techie
 
Posts: 13
Joined: Tue Sep 12, 2017 5:47 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 22 guests