From 6da1cc69875e5a5f67a02ab889f66803128fcceb Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 10 Oct 2023 21:01:35 +0200 Subject: [PATCH] default WITH_AAD to cJSON_FOUND --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b8020814..fb1167f93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})