Skip to content

Commit

Permalink
CMake: correctly detect AOM_USAGE_GOOD_QUALITY
Browse files Browse the repository at this point in the history
aom could be installed in a non-standard prefix, preventing the
aom encoder from being used.
  • Loading branch information
kleisauke committed Oct 18, 2023
1 parent 20ad9fb commit f52636a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/FindAOM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ find_path(AOM_INCLUDE_DIR
PATH_SUFFIXES AOM
)

check_symbol_exists(AOM_USAGE_GOOD_QUALITY ${AOM_INCLUDE_DIR}/aom/aom_encoder.h aom_usage_flag_exists)
list(APPEND CMAKE_REQUIRED_INCLUDES ${AOM_INCLUDE_DIR})
check_symbol_exists(AOM_USAGE_GOOD_QUALITY aom/aom_encoder.h aom_usage_flag_exists)
unset(CMAKE_REQUIRED_INCLUDES)

find_library(AOM_LIBRARY
NAMES libaom aom
Expand Down

0 comments on commit f52636a

Please sign in to comment.