From f98229554b9195a483dcfbd6b4ca3ed7c2412dee Mon Sep 17 00:00:00 2001 From: Kareem Date: Wed, 24 Dec 2025 17:02:25 -0700 Subject: [PATCH] Update CMake logic to allow WOLFSSL_SYS_CA_CERTS without filesystem support on Windows/Mac. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a23cb522f9..b13a79432d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2063,10 +2063,7 @@ add_option("WOLFSSL_SYS_CA_CERTS" "yes" "yes;no") if(WOLFSSL_SYS_CA_CERTS) - if(NOT WOLFSSL_FILESYSTEM) - message("Can't enable system CA certs without a filesystem.") - override_cache(WOLFSSL_SYS_CA_CERTS "no") - elseif(APPLE) + if(APPLE) # Headers used for MacOS default system CA certs behavior. Only MacOS SDK will have this header check_include_file("Security/SecTrustSettings.h" HAVE_SECURITY_SECTRUSTSETTINGS_H) # Headers used for Apple native cert validation. All device SDKs should have these headers @@ -2100,6 +2097,9 @@ if(WOLFSSL_SYS_CA_CERTS) else() message(FATAL_ERROR "Can't enable system CA certs without Apple Security.framework headers.") endif() + elseif(NOT WIN32 AND NOT WOLFSSL_FILESYSTEM) + message("Can't enable system CA certs without a filesystem.") + override_cache(WOLFSSL_SYS_CA_CERTS "no") endif()