Skip to content

Commit 8905480

Browse files
committed
Set CMAKE_POLICY_VERSION_MINIMUM=3.9 to allow IPO with gcc
1 parent f40eed2 commit 8905480

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ function build_libavif {
132132
# libavif) to disable the compilation and inclusion of aom's AV1 decoder.
133133
# CONFIG_AV1_HIGHBITDEPTH=0 is another flag for libaom that disables support
134134
# for encoding high bit depth images.
135+
# CMAKE_POLICY_VERSION_MINIMUM=3.9 enables cmake policy CMP0069, which is
136+
# required to allow INTERPROCEDURAL_OPTIMIZATION (-flto) WITH gcc
135137
(cd $out_dir \
136-
&& CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake \
138+
&& CMAKE_POLICY_VERSION_MINIMUM=3.9 cmake \
137139
-DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \
138140
-DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib \
139141
-DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib \

0 commit comments

Comments
 (0)