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

if( TARGET openssl::openssl )
  return()
endif()
create_target(openssl::openssl)

if (USESYSTEMLIBS)
  include(FindOpenSSL)
else (USESYSTEMLIBS)
  use_prebuilt_binary(openssl)
  if (WINDOWS)
    set_target_libraries(openssl::openssl libssl libcrypto)
  elseif (LINUX)
    set_target_libraries(openssl::openssl ssl crypto dl)
  else()
    set_target_libraries(openssl::openssl ssl crypto)
  endif (WINDOWS)
  set_target_include_dirs(openssl::openssl ${LIBS_PREBUILT_DIR}/include)
endif (USESYSTEMLIBS)