From c8c2f636c97d21877c2453b317244b495af1a56c Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 15 Jul 2024 22:18:23 +0530 Subject: [PATCH] Fix build on Windows --- build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 7999271..f1594b3 100644 --- a/build.rs +++ b/build.rs @@ -4,7 +4,10 @@ use std::path::PathBuf; fn main() { if cfg!(target_os = "windows") { download_prebuilt(); - } else { + } + + #[cfg(not(target_os = "windows"))] + { let mut config = cmake::Config::new("."); config .define("BUILD_SHARED_LIBS", "OFF")