diff options
Diffstat (limited to 'linden/indra/cmake/OpenSSL.cmake')
-rw-r--r-- | linden/indra/cmake/OpenSSL.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/linden/indra/cmake/OpenSSL.cmake b/linden/indra/cmake/OpenSSL.cmake new file mode 100644 index 0000000..81584c0 --- /dev/null +++ b/linden/indra/cmake/OpenSSL.cmake | |||
@@ -0,0 +1,23 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | set(OpenSSL_FIND_QUIETLY ON) | ||
5 | set(OpenSSL_FIND_REQUIRED ON) | ||
6 | |||
7 | if (STANDALONE) | ||
8 | include(FindOpenSSL) | ||
9 | else (STANDALONE) | ||
10 | use_prebuilt_binary(openSSL) | ||
11 | if (WINDOWS) | ||
12 | set(OPENSSL_LIBRARIES ssleay32 libeay32) | ||
13 | else (WINDOWS) | ||
14 | set(OPENSSL_LIBRARIES ssl) | ||
15 | endif (WINDOWS) | ||
16 | set(OPENSSL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) | ||
17 | endif (STANDALONE) | ||
18 | |||
19 | if (LINUX) | ||
20 | set(CRYPTO_LIBRARIES crypto) | ||
21 | elseif (DARWIN) | ||
22 | set(CRYPTO_LIBRARIES llcrypto) | ||
23 | endif (LINUX) | ||