diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e9ca8e..c8a3545 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,6 +253,13 @@ else() endif() endif() +#OpenSSL +find_package(OpenSSL) +if (OPENSSL_FOUND) + include_directories(${OPENSSL_INCLUDE_DIR}) + list (APPEND USCXML_CORE_LIBS ${OPENSSL_LIBRARIES}) +endif() + # XercesC CheckHasModule(XercesC) @@ -328,13 +335,10 @@ if (UNIX) list (APPEND USCXML_CORE_LIBS "pthread") endif() -#OpenSSL -find_package(OpenSSL) -if (OPENSSL_FOUND) - include_directories(${OPENSSL_INCLUDE_DIR}) - list (APPEND USCXML_CORE_LIBS ${OPENSSL_LIBRARIES}) -endif() +if (OPENSSL_FOUND AND LIBEVENT_HAS_BEVCB AND EVENT_SSL_FOUND) + set(HTTPS_ENABLED ON) +endif() # uriparser - part of contrib now |