libavif 1.4.0 requires CMake >= 3.22, according to https://github.com/AOMediaCodec/libavif/releases/tag/v1.4.0
However, when I try installing libavif from source in Ubuntu 22.04 with CMake 3.22.1, I get
12.53 CMake Error at _deps/libaom-src/CMakeLists.txt:383 (target_link_libraries):
12.53 Error evaluating generator expression:
12.53
12.53 $PATH:ABSOLUTE_PATH,/depends/libavif-1.4.0/_deps/libaom-src,/
12.53
12.53 Expression did not evaluate to a known generator expression
This makes sense, as https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex-path-cmake-path tells me that it was only added in CMake 3.24.

libavif 1.4.0 requires CMake >= 3.22, according to https://github.com/AOMediaCodec/libavif/releases/tag/v1.4.0
However, when I try installing libavif from source in Ubuntu 22.04 with CMake 3.22.1, I get
This makes sense, as https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex-path-cmake-path tells me that it was only added in CMake 3.24.