diff options
author | Alan Antonuk <aega@med.umich.edu> | 2012-05-29 16:43:21 -0400 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-04-09 15:35:09 -0700 |
commit | 9d7caaaadb0f3a9f0124f7cc76112f8645971b66 (patch) | |
tree | 726a664c13cf6ce7a55f11c8ee5f1e43fd16e864 /CMakeLists.txt | |
parent | 6f4e97a5d1bc40c53626a975bda9af9a8180de55 (diff) | |
download | rabbitmq-c-github-ask-9d7caaaadb0f3a9f0124f7cc76112f8645971b66.tar.gz |
Adding support for OpenSSL in multithreaded applications
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d4fb48a..6de357d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -208,6 +208,8 @@ if (POPT_FOUND AND XmlTo_FOUND) set(DO_DOCS ON) endif() +find_package(Threads) + option(BUILD_SHARED_LIBS "Build rabbitmq-c as a shared library" ON) option(BUILD_STATIC_LIBS "Build rabbitmq-c as a static library" OFF) @@ -216,6 +218,7 @@ option(BUILD_TOOLS "Build Tools (requires POPT Library)" ${POPT_FOUND}) option(BUILD_TOOLS_DOCS "Build man pages for Tools (requires xmlto)" ${DO_DOCS}) option(BUILD_TESTS "Build tests (run tests with make test)" ON) option(ENABLE_SSL_SUPPORT "Enable SSL support" ON) +option(ENABLE_THREAD_SAFETY "Enable thread safety when using OpenSSL" ${Threads_FOUND}) set(SSL_ENGINE "OpenSSL" CACHE STRING "SSL Backend to use, valid options: OpenSSL, cyaSSL, GnuTLS, PolarSSL") mark_as_advanced(SSL_ENGINE) |