From a97a364aed826de7c594bcee239c9268567e127a Mon Sep 17 00:00:00 2001 From: lod Date: Sun, 30 Mar 2025 14:47:07 +0200 Subject: [PATCH] make it build with CMAKE 4.0 --- PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index b2bc5ee..6495c73 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -43,6 +43,8 @@ prepare() { done sed -i 's/$(MAKE)/ninja/g' edgetx/CMakeLists.txt + sed -i 's/cmake_policy(SET CMP0026 OLD)/cmake_policy(SET CMP0026 NEW)/' edgetx/companion/src/CMakeLists.txt + sed -i 's/cmake_policy(SET CMP0023 OLD)/cmake_policy(SET CMP0023 NEW)/' edgetx/cmake/GenericDefinitions.cmake cd "$srcdir/edgetx/radio/src/thirdparty/" git submodule init @@ -104,6 +106,7 @@ build() { -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ -DGVARS=YES \ -DHELI=YES \ -DLUA=YES \