summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenSSL.cmake
blob: 0d3f3ad9b469c2e482513d44e1c727248d7539f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- cmake -*-
include(Prebuilt)

include_guard()
add_library( ll::openssl INTERFACE IMPORTED )

use_conan_binary(openssl)
use_prebuilt_binary(openssl)
if (WINDOWS)
  target_link_libraries(ll::openssl INTERFACE libssl libcrypto)
elseif (LINUX)
  target_link_libraries(ll::openssl INTERFACE ssl crypto dl)
else()
  target_link_libraries(ll::openssl INTERFACE ssl crypto)
endif (WINDOWS)
target_include_directories( ll::openssl SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include)