Skip to content

Commit

Permalink
FindOpus: only append /opus to include path when it actually exists
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jan 12, 2024
1 parent 0fa372f commit a5f350f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/FindOpus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ find_path(Opus_INCLUDE_PATH
PATH_SUFFIXES opus
HINTS ${PC_OPUS_INCLUDEDIR}
)
list(APPEND Opus_INCLUDE_PATH "${Opus_INCLUDE_PATH}/opus")
if(EXISTS "${Opus_INCLUDE_PATH}/opus")
list(APPEND Opus_INCLUDE_PATH "${Opus_INCLUDE_PATH}/opus")
endif()

if(PC_OPUS_FOUND)
get_flags_from_pkg_config("${Opus_LIBRARY}" "PC_OPUS" "_opus")
Expand Down

0 comments on commit a5f350f

Please sign in to comment.