I am now trying to build opencv with cmake, and if I use the following command:
cmake -DBUILD_SHARED_LIBS=OFF ..
I can build a static OPENCV libary. However, the built library links C run time library statically. In VC2010, it uses Multi-threaded Debug (/MTd) option. What I expects is to link C run time library dynamically, and that is using /MDd option in VC2010, then what can I do to make it possible? Thanks.
Add -DBUILD_WITH_STATIC_CRT=OFF
to CMake command line:
cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_WITH_STATIC_CRT=OFF ..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With