From 3a53b26361997ef3289d6e761b895b9c8257dc05 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 18 Dec 2021 16:23:50 +0100 Subject: [PATCH] (macOS) Enabled the BUNDLED_CERTS CMake option for legacy builds. Also added a CMake message on all platforms when configuring with the bundled TLS/SSL certificates. --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b581f1a41..2577963f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,10 +243,15 @@ if(APPLE) message("-- Code signing certificate identity: " ${MACOS_CODESIGN_IDENTITY}) endif() if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14) + set(BUNDLED_CERTS ON) message("-- macOS version 10.13 or lower has been set, so if code signing is enabled, Hardened Runtime will not be used") endif() endif() +if(WIN32) + set(BUNDLED_CERTS ON) +endif() + #--------------------------------------------------------------------------------------------------- # Preprocessor directives. @@ -260,8 +265,9 @@ if(RPI) add_definitions(-D_RPI_) endif() -if(BUNDLED_CERTS OR WIN32) +if(BUNDLED_CERTS) add_definitions(-DUSE_BUNDLED_CERTIFICATES) + message("-- Building with bundled TLS/SSL certificates") endif() if(DEFINED libCEC_FOUND)