default WITH_AAD to cJSON_FOUND

This commit is contained in:
akallabeth 2023-10-10 21:01:35 +02:00 committed by akallabeth
parent 822ba31c31
commit 6da1cc6987

View File

@ -641,7 +641,8 @@ find_feature(MbedTLS ${MBEDTLS_FEATURE_TYPE} ${MBEDTLS_FEATURE_PURPOSE} ${MBEDTL
find_feature(PCSC ${PCSC_FEATURE_TYPE} ${PCSC_FEATURE_PURPOSE} ${PCSC_FEATURE_DESCRIPTION})
option(WITH_AAD "Compile with support for Azure AD authentication" ON)
find_package(cJSON)
option(WITH_AAD "Compile with support for Azure AD authentication" ${cJSON_FOUND})
if (WITH_AAD)
find_package(cJSON REQUIRED)
include_directories(${CJSON_INCLUDE_DIRS})