mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
8d1bb02da0
Based on #38118, credits: @talregev. OpenSSL now installs a CMake config, but it is not generated by CMake, and it is not multi-config capable. This limitation affects location properties, interface link libraries and package variables. This PR just patches the config to chainload CMake's Find module. Together with vcpkg's cmake wrapper, this immediately gives the desired imported targets in a multi-config configuration when a user really requests `OpenSSL CONFIG`. --------- Co-authored-by: Tal Regev <tal.regev@gmail.com>
6 lines
195 B
Plaintext
6 lines
195 B
Plaintext
openssl is compatible with built-in CMake targets:
|
|
|
|
find_package(OpenSSL REQUIRED)
|
|
target_link_libraries(main PRIVATE OpenSSL::SSL)
|
|
target_link_libraries(main PRIVATE OpenSSL::Crypto)
|