Skip to content

Error when building with CMake < 3.24 #3095

@radarhere

Description

@radarhere

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions