mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-30 18:17:50 +00:00
automatically enable PocoJWT if OpenSSL is available
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user