Sorry, I checked again, BUILD_SHARED_LIBS is actually set to true.
I see...
I much prefer static linking everything (and it is much better for what we do, as we work on many systems with different msvcrt versions, etc.)
As soon as the complexity of dependencies goes up, you won't be able to link everything statically in a good way. But it's true, that Microsofts runtime library is a pain to distribute, it's way nicer with GCC, just ship libstdc++ and libgcc and you're mostly covered.
I've quickly asked on IRC and googled a bit, but it doesn't seem like you could just include the needed DLLs for MSVC's runtime library...
but because I need to use sfe::Movie project, which does not support static linking, I have to go back to dynamic linking............and hence I get all these problems
In theory you might be able to link sfe::Movie statically, but you'd then run into licensing issues and you'd have to modify the build script on your own and some codec might not even support static linkage.
It can be a pain to get used to, but it's worth the efford for a larger project (guess why about all games ship with all those DLLs).
In a perfect world, we'd all be using something some sort of package manager...
If you need help, you could provide all the needed files (yeah this time we'd need everything) and I might take a look at it.