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.
将-DBUILD_WITH_STATIC_CRT=OFF
添加到CMake命令行:
cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_WITH_STATIC_CRT=OFF ..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.