diff --git a/CMakeLists.txt b/CMakeLists.txt index d765ff0b9..16bf8de7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ endif() # Include some common macros to simpilfy the Poco CMake files include(PocoMacros) -if(ENABLE_CRYPTO OR ENABLE_NETSSL) +if(ENABLE_CRYPTO OR ENABLE_NETSSL OR ENABLE_JWT) find_package(OpenSSL REQUIRED) else() find_package(OpenSSL) @@ -78,9 +78,11 @@ endif() if(OPENSSL_FOUND) option(ENABLE_NETSSL "Enable NetSSL" ON) option(ENABLE_CRYPTO "Enable Crypto" ON) + option(ENABLE_JWT "Enable JWT" ON) else() option(ENABLE_NETSSL "Enable NetSSL" OFF) option(ENABLE_CRYPTO "Enable Crypto" OFF) + option(ENABLE_JWT "Enable JWT" OFF) endif() if(ENABLE_APACHECONNECTOR) @@ -154,7 +156,6 @@ option(ENABLE_PDF "Enable PDF" OFF) option(ENABLE_UTIL "Enable Util" ON) option(ENABLE_NET "Enable Net" ON) option(ENABLE_NETSSL_WIN "Enable NetSSL Windows" OFF) -option(ENABLE_JWT "Enable JWT" OFF) option(ENABLE_SEVENZIP "Enable SevenZip" OFF) option(ENABLE_ZIP "Enable Zip" ON) option(ENABLE_CPPPARSER "Enable C++ parser" OFF)