CMake: fix build with static Brotli
BrotliCommon is a dependency of BrotliDec and BrotliEnc.
amends 5d2da76c1e
Pick-to: 6.1
Change-Id: I7741d417e95737f8caacd01962985a27dbb7514c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
76d3cda884
commit
d104d510ea
@ -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…
Reference in New Issue
Block a user