Skip to content

Commit

Permalink
CMake: fix build with static Brotli
Browse files Browse the repository at this point in the history
BrotliCommon is a dependency of BrotliDec and BrotliEnc.

amends 5d2da76

Pick-to: 6.1
Change-Id: I7741d417e95737f8caacd01962985a27dbb7514c
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
lixinwei715 committed May 6, 2021
1 parent 76d3cda commit d104d51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/FindWrapBrotli.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,12 @@ else()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WrapBrotli REQUIRED_VARS
BrotliDec_FOUND BrotliEnc_FOUND BrotliCommon_FOUND)

if (WrapBrotli_FOUND)
set_property(TARGET WrapBrotli::WrapBrotliDec APPEND PROPERTY
INTERFACE_LINK_LIBRARIES WrapBrotli::WrapBrotliCommon)
set_property(TARGET WrapBrotli::WrapBrotliEnc APPEND PROPERTY
INTERFACE_LINK_LIBRARIES WrapBrotli::WrapBrotliCommon)
endif()
endif()
endif()

0 comments on commit d104d51

Please sign in to comment.