From 890548036fe990090531c7c3987c92b8fda7eb72 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Thu, 1 May 2025 10:37:21 -0400 Subject: [PATCH] Set CMAKE_POLICY_VERSION_MINIMUM=3.9 to allow IPO with gcc --- .github/workflows/wheels-dependencies.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels-dependencies.sh b/.github/workflows/wheels-dependencies.sh index 7aa4900c8..6bd9e1eaf 100755 --- a/.github/workflows/wheels-dependencies.sh +++ b/.github/workflows/wheels-dependencies.sh @@ -132,8 +132,10 @@ function build_libavif { # libavif) to disable the compilation and inclusion of aom's AV1 decoder. # CONFIG_AV1_HIGHBITDEPTH=0 is another flag for libaom that disables support # for encoding high bit depth images. + # CMAKE_POLICY_VERSION_MINIMUM=3.9 enables cmake policy CMP0069, which is + # required to allow INTERPROCEDURAL_OPTIMIZATION (-flto) WITH gcc (cd $out_dir \ - && CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake \ + && CMAKE_POLICY_VERSION_MINIMUM=3.9 cmake \ -DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \ -DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib \ -DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib \