mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Set CMAKE_POLICY_VERSION_MINIMUM=3.9 to allow IPO with gcc
This commit is contained in:
parent
f40eed2297
commit
890548036f
4
.github/workflows/wheels-dependencies.sh
vendored
4
.github/workflows/wheels-dependencies.sh
vendored
|
@ -132,8 +132,10 @@ function build_libavif {
|
||||||
# libavif) to disable the compilation and inclusion of aom's AV1 decoder.
|
# libavif) to disable the compilation and inclusion of aom's AV1 decoder.
|
||||||
# CONFIG_AV1_HIGHBITDEPTH=0 is another flag for libaom that disables support
|
# CONFIG_AV1_HIGHBITDEPTH=0 is another flag for libaom that disables support
|
||||||
# for encoding high bit depth images.
|
# 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 \
|
(cd $out_dir \
|
||||||
&& CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake \
|
&& CMAKE_POLICY_VERSION_MINIMUM=3.9 cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \
|
-DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \
|
||||||
-DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib \
|
-DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib \
|
||||||
-DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib \
|
-DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user