make it build with CMAKE 4.0
This commit is contained in:
parent
557c608863
commit
a97a364aed
1 changed files with 3 additions and 0 deletions
3
PKGBUILD
3
PKGBUILD
|
@ -43,6 +43,8 @@ prepare() {
|
||||||
done
|
done
|
||||||
|
|
||||||
sed -i 's/$(MAKE)/ninja/g' edgetx/CMakeLists.txt
|
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/"
|
cd "$srcdir/edgetx/radio/src/thirdparty/"
|
||||||
git submodule init
|
git submodule init
|
||||||
|
@ -104,6 +106,7 @@ build() {
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
|
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
|
||||||
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
||||||
-DGVARS=YES \
|
-DGVARS=YES \
|
||||||
-DHELI=YES \
|
-DHELI=YES \
|
||||||
-DLUA=YES \
|
-DLUA=YES \
|
||||||
|
|
Loading…
Add table
Reference in a new issue