We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b51b0 commit 1707cafCopy full SHA for 1707caf
boring-sys/build/main.rs
@@ -199,6 +199,14 @@ fn get_boringssl_cmake_config(config: &Config) -> cmake::Config {
199
let src_path = get_boringssl_source_path(config);
200
let mut boringssl_cmake = cmake::Config::new(src_path);
201
202
+ if config.target_os == "windows" {
203
+ // Explicitly use the non-debug CRT.
204
+ // This is required now because newest BoringSSL requires CMake 3.22 which
205
+ // uses the new logic with CMAKE_MSVC_RUNTIME_LIBRARY introduced in CMake 3.15.
206
+ // https://github.com/rust-lang/cmake-rs/pull/30#issuecomment-2969758499
207
+ boringssl_cmake.define("CMAKE_MSVC_RUNTIME_LIBRARY", "MultiThreadedDLL");
208
+ }
209
+
210
if config.host == config.target {
211
return boringssl_cmake;
212
}
0 commit comments