rust-lang / cmake-rs

Rust build dependency for running cmake
https://docs.rs/cmake
Apache License 2.0
301 stars 121 forks source link

[MSVC] Use the debug version of the run-time library when compiling in debug mode #178

Open xavier-caroff opened 1 year ago

xavier-caroff commented 1 year ago

When compiling in debug mode with the MSVC compiler the /MD or /MT flags shall be replaced by /MDd or /MTd.

When it is not the case it prevents to link with libraries which are also compiled in debug mode (ie linking with MSVCRTD. lib or LIBCMTD.lib).