Skip to content

Commit

Permalink
chore(deps): update cmake dependency version to build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chiichen committed Nov 30, 2024
1 parent 75284b2 commit b03fb83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libvnc-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = ["compile_commands.json"]
bindgen = "0.70.0"
cc = "1.0.95"
pkg-config = "0.3.30"
cmake = { git = "https://github.com/Chiichen/cmake-rs.git", rev = "b0fdc01b3bedd3cec8dfbbff660bec9f496734ed" }
cmake = "0.1.52"
which = "7.0.0"

[features]
Expand Down
19 changes: 9 additions & 10 deletions libvnc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,15 @@ fn bindgen_vncserver() {
}
} else if target_os == "windows" {
// Is it necessary?
// config.define(
// "CMAKE_TOOLCHAIN_FILE",
// which::which("vcpkg")
// .expect("Install vcpkg and make sure it can be found in current environment")
// .parent()
// .unwrap()
// .join("scripts/buildsystems/vcpkg.cmake"),
// );
config.no_default_c_flags(true);
config.no_default_cxx_flags(true);
config.define(
"CMAKE_TOOLCHAIN_FILE",
which::which("vcpkg")
.expect("Install vcpkg and make sure it can be found in current environment")
.parent()
.unwrap()
.join("scripts/buildsystems/vcpkg.cmake"),
);
config.no_default_flags(true);
config.define("WITH_OPENSSL", "OFF");
config.define("WITH_GNUTLS", "OFF");
config.define("WITH_GCRYPT", "OFF");
Expand Down

0 comments on commit b03fb83

Please sign in to comment.