Fix FindWrapOpenSSL.cmake if OpenSSL::Crypto is UNKNOWN_LIBRARY
The attempt to call target_link_libraries on OpenSSL::Crypto failed when this target was added as UNKNOWN library by FindOpenSSL.cmake. Instead, set the INTERFACE_LINK_LIBRARIES property directly. Pick-to: 6.1 6.0 Fixes: QTBUG-90925 Change-Id: Idbc1379c89480225fc7a8d417416ed20404a1122 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
746393545f
commit
b6b9e54f16
@ -18,7 +18,7 @@ if(OpenSSL_FOUND)
|
||||
else()
|
||||
set(writableLib OpenSSL::Crypto)
|
||||
endif()
|
||||
target_link_libraries(${writableLib} INTERFACE Ws2_32 Crypt32)
|
||||
set_property(TARGET ${writableLib} APPEND PROPERTY INTERFACE_LINK_LIBRARIES Ws2_32 Crypt32)
|
||||
unset(libType)
|
||||
unset(writableLib)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user