Use OpenSSL::Crypto target for CMake >= 3.4 instead of ${OPENSSL_INCLUDE_DIR} and ${OPENSSL_CRYPTO_LIBRARY}. It is not bug, just modern style CMake.
target_link_options command requires CMake >= 3.13, version is too high. Now uses target_link_options if possible with fallback to set_target_properties for older CMake versions.
Both fixes come from my Vcpkg port, tested on Windows, Linux and macOS.
${OPENSSL_INCLUDE_DIR}
and${OPENSSL_CRYPTO_LIBRARY}
. It is not bug, just modern style CMake.target_link_options
command requires CMake >= 3.13, version is too high. Now usestarget_link_options
if possible with fallback toset_target_properties
for older CMake versions.Both fixes come from my Vcpkg port, tested on Windows, Linux and macOS.