I'm implementing CEF in a Unreal Engine, and UE4 is linking against CRT on windows dynamically. This is fine with regular CEF usage as I can set /MD flag when building the libcef_dll_wrapper.lib via CMake. Unfortunately though I'd also need to support sandboxed sub-processes, and cef_sandbox.lib provided in the distributables apparently expects static linkage to CRT. I get these errors:
- Code: Select all
cef_sandbox.lib(*.obj): Error LNK2038 : mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in SharedPCH.Engine.ShadowErrors.h.obj
Where SharedPCH.Engine.ShadowErrors.h.obj is something UE4 generates.
So my question is, how do I work with a forced /MD environment when using cef_sandbox.lib?