Compiling UE4 with /MT (statically link C runtime)

I have a library (namely CEF with sandboxing support) which doesn’t support dynamic linking of C runtime on Windows (CRT) (/MD flag) which is used by Unreal by default. Is there a way to compile my project or UE4 with /MT (static C runtime linkage) instead?
I’d also wonder why /MD is the default? I guess maybe reducing compile time or reducing the size of the output.


Did you ever figure this out?

nope, back then I ended up modifying the library (CEF) to support /MD for sandboxing. but that project is on hold atm and I’m busy with something else.

1 Like

Well, it’s been a year so no wonder you moved on :slight_smile: But thanks alot for answering!