Skip to content

Commit

Permalink
fixup! wip: coexist better with ext dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Feb 21, 2024
1 parent 87838d1 commit a22649c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/Modules/LocalSvt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ else()
if(EXISTS "${AVIF_SOURCE_DIR}/ext/SVT-AV1")
message(STATUS "libavif: ext/SVT-AV1 found; using as FetchContent SOURCE_DIR")
set(FETCHCONTENT_SOURCE_DIR_SVT "${AVIF_SOURCE_DIR}/ext/SVT-AV1")
message(CHECK_START "libavif: configuring SVT-AV1")
else()
message(CHECK_START "libavif: fetching and configuring SVT-AV1")
endif()

set(SVT_FETCHCONTENT_BINARY_DIR "${FETCHCONTENT_BASE_DIR}/svt-build")
Expand Down Expand Up @@ -83,6 +86,8 @@ else()
set_target_properties(SvtAv1Enc PROPERTIES AVIF_LOCAL ON)

target_include_directories(SvtAv1Enc INTERFACE ${SVT_INCLUDE_DIR})

message(CHECK_PASS "complete")
endif()

if(EXISTS "${AVIF_SOURCE_DIR}/ext/SVT-AV1")
Expand Down

0 comments on commit a22649c

Please sign in to comment.