Skip to content

Commit

Permalink
Merge pull request #3 from drodin/hunter-0.12
Browse files Browse the repository at this point in the history
fix unrelocatable cmake config
  • Loading branch information
rbsheth authored Apr 24, 2024
2 parents fc28a7d + a1d368d commit 45ef060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ if(HUNTER_ENABLED)
find_package(libogg CONFIG REQUIRED)
set(OGG_LIBRARY libogg::ogg)
get_target_property(OGG_INCLUDE_DIR libogg::ogg INTERFACE_INCLUDE_DIRECTORIES)
set(OGG_INCLUDE_DIR $<BUILD_INTERFACE:${OGG_INCLUDE_DIR}>)

hunter_add_package(Opus)
find_package(Opus CONFIG REQUIRED)
set(OPUS_LIBRARY Opus::opus)
get_target_property(OPUS_INCLUDE_DIR Opus::opus INTERFACE_INCLUDE_DIRECTORIES)
set(OPUS_INCLUDE_DIR ${OPUS_INCLUDE_DIR} ${OPUS_INCLUDE_DIR}/opus)
set(OPUS_INCLUDE_DIR $<BUILD_INTERFACE:${OPUS_INCLUDE_DIR}> $<BUILD_INTERFACE:${OPUS_INCLUDE_DIR}/opus> $<INSTALL_INTERFACE:include/opus>)
else()
find_path(OGG_INCLUDE_DIR ogg/ogg.h)
find_library(OGG_LIBRARY ogg)
Expand Down

0 comments on commit 45ef060

Please sign in to comment.