summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenSSL.cmake
blob: c9147f1d5eeca6c30a7b243ac89d6d37e921292e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- cmake -*-
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)
  target_link_libraries(ll::openssl INTERFACE ssl crypto dl)
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 ()