Skip to content

Commit

Permalink
Merge pull request #999 from kleisauke/cmake-aom-symbol-check
Browse files Browse the repository at this point in the history
CMake: correctly detect `AOM_USAGE_GOOD_QUALITY`
  • Loading branch information
farindk authored Oct 18, 2023
2 parents 14a2c44 + f52636a commit c7b7d50
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 c7b7d50

Please sign in to comment.