mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Fix avif version detection
Currently, even though libavif is found, the version of libavif will not be printed. `find_package(libavif QUIET)` will set `libavif_VERSION` according to cmake documentation https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-version-selection This patch has been tested on ArchLinux with libavif 1.0.3 installed.
This commit is contained in:
parent
2e3ccb4e8e
commit
6e3685d733
@ -1452,8 +1452,8 @@ if(WITH_WEBP OR HAVE_WEBP)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_AVIF OR HAVE_AVIF)
|
if(WITH_AVIF OR HAVE_AVIF)
|
||||||
if(AVIF_VERSION)
|
if(libavif_VERSION)
|
||||||
status(" AVIF:" AVIF_FOUND THEN "${AVIF_LIBRARY} (ver ${AVIF_VERSION})" ELSE "NO")
|
status(" AVIF:" AVIF_FOUND THEN "${AVIF_LIBRARY} (ver ${libavif_VERSION})" ELSE "NO")
|
||||||
else()
|
else()
|
||||||
status(" AVIF:" AVIF_FOUND THEN "${AVIF_LIBRARY}" ELSE "NO")
|
status(" AVIF:" AVIF_FOUND THEN "${AVIF_LIBRARY}" ELSE "NO")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user