From f96fefee6e8f2a6852c6856643cae1078cf3bd72 Mon Sep 17 00:00:00 2001 From: Iraj Date: Mon, 23 Sep 2024 16:30:04 +0200 Subject: [PATCH] Windows compatibility --- mbedtls-sys/build/cmake.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mbedtls-sys/build/cmake.rs b/mbedtls-sys/build/cmake.rs index ac3e8b5d..98e7bb42 100644 --- a/mbedtls-sys/build/cmake.rs +++ b/mbedtls-sys/build/cmake.rs @@ -49,15 +49,18 @@ impl super::BuildConfig { let dst = cmk.build(); println!( - "cargo:rustc-link-search=native={}/lib", - dst.to_str().expect("link-search UTF-8 error") + "cargo:rustc-link-search=native={}", + dst.join("lib").to_str().expect("link-search UTF-8 error") ); println!("cargo:rustc-link-lib=static=mbedtls"); println!("cargo:rustc-link-lib=static=mbedx509"); println!("cargo:rustc-link-lib=static=mbedcrypto"); - println!("cargo:include={}/include", dst.to_str().expect("include/ UTF-8 error")); + println!( + "cargo:include={}", + dst.join("include").to_str().expect("include/ UTF-8 error") + ); println!("cargo:config_h={}", self.config_h.to_str().expect("config.h UTF-8 error")); } }