diff options
| author | Erik Kundiman <erik@megapahit.org> | 2023-07-11 15:53:04 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2023-07-19 10:46:49 +0800 | 
| commit | 78fc526400e253500f809e15b2da50061883d8c8 (patch) | |
| tree | b227f024b89bba4c33a196033e05f925f0a06552 | |
| parent | 79b91a4ed2d826308e5dd2c9493efb449b380ff7 (diff) | |
Not use use_system_binary for system OpenSSL
Some distros already include OpenSSL as part of the distribution,
that OpenSSL may not be provided with its .pc files, even though they're
available upstream.
| -rw-r--r-- | indra/cmake/OpenSSL.cmake | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/indra/cmake/OpenSSL.cmake b/indra/cmake/OpenSSL.cmake index 3387c74f45..c9147f1d5e 100644 --- a/indra/cmake/OpenSSL.cmake +++ b/indra/cmake/OpenSSL.cmake @@ -4,8 +4,11 @@ include(Prebuilt)  include_guard()  add_library( ll::openssl INTERFACE IMPORTED ) +if (USE_AUTOBUILD_3P OR USE_CONAN)  use_system_binary(openssl)  use_prebuilt_binary(openssl) +endif () +  if (WINDOWS)    target_link_libraries(ll::openssl INTERFACE libssl libcrypto)  elseif (LINUX) @@ -13,5 +16,6 @@ elseif (LINUX)  else()    target_link_libraries(ll::openssl INTERFACE ssl crypto)  endif (WINDOWS) +if (USE_AUTOBUILD_3P OR USE_CONAN)  target_include_directories( ll::openssl SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include) - +endif () | 
