Thanks for the reply. What about enabling C++ exceptions? And I should do "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT" to set the runtime type to static, right? -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://cmake.org/pipermail/cmake/attachments/20191028/755afcab/attachment.html>