CMake: fix build with static Brotli
BrotliCommon is a dependency of BrotliDec and BrotliEnc. amends 5d2da76c1ee70ffd1f027365c0f3af74b76fd382 Change-Id: I7741d417e95737f8caacd01962985a27dbb7514c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit d104d510ea6c4f3a24f5d6105930d57c6aee0cb6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1e792df004
commit
3a28e12534
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user