summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenSSL.cmake
blob: 715af3ba54d8fbafa2ea39c762e07f1a0a5f0185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- cmake -*-

set(OpenSSL_FIND_QUIETLY ON)
set(OpenSSL_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindOpenSSL)
else (STANDALONE)
  if (WINDOWS)
    set(OPENSSL_LIBRARIES ssleay32 libeay32)
  else (WINDOWS)
    set(OPENSSL_LIBRARIES ssl)
  endif (WINDOWS)
  set(OPENSSL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include)
endif (STANDALONE)

if (LINUX)
  set(CRYPTO_LIBRARIES crypto)
elseif (DARWIN)
  set(CRYPTO_LIBRARIES llcrypto)
endif (LINUX)