Set OPENSSL_ROOT to ensure the correct OpenSSL version is located

This commit is contained in:
rh101 2021-07-16 15:42:06 +10:00
parent 0e215e77bb
commit 9cd96ee5c7
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ macro(set_openssl_sub_target sub_target_name sub_lib_name)
)
endif()
if(${sub_lib_name} STREQUAL "ssl")
set(OPENSSL_ROOT_DIR "${platform_spec_path}" CACHE STRING "" FORCE)
set(OPENSSL_SSL_LIBRARY "${imp_lib_name}" CACHE STRING "" FORCE)
else()
set(OPENSSL_CRYPTO_LIBRARY "${imp_lib_name}" CACHE STRING "" FORCE)