Files
termux-packages/packages/deno/cmake-pass-cmake-policy-version-minimum.diff
2025-09-07 05:36:53 +00:00

15 lines
574 B
Diff

--- a/src/lib.rs
+++ b/src/lib.rs
@@ -438,6 +438,11 @@
};
let host = self.host.clone().unwrap_or_else(|| getenv_unwrap("HOST"));
+ // Pass CMAKE_POLICY_VERSION_MINIMUM through env
+ if let Some(s) = self.getenv_os("CMAKE_POLICY_VERSION_MINIMUM") {
+ self.define("CMAKE_POLICY_VERSION_MINIMUM", s);
+ }
+
// Some decisions later on are made if CMAKE_TOOLCHAIN_FILE is defined,
// so we need to read it from the environment variables from the beginning.
if !self.defined("CMAKE_TOOLCHAIN_FILE") {