mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-13 13:21:03 +00:00
15 lines
574 B
Diff
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") {
|