CI: Refactor OpenSSL handling on MacOS to support MQTT SSL

This commit is contained in:
WarmUpTill
2025-10-22 21:34:38 +02:00
committed by WarmUpTill
parent e9baf27ca2
commit 00db0cf7c4
8 changed files with 58 additions and 40 deletions

View File

@@ -3,6 +3,13 @@ project(advanced-scene-switcher-mqtt)
# --- Check paho.mqtt.cpp requirements ---
if(OS_MACOS)
set(OPENSSL_USE_STATIC_LIBS
ON
CACHE BOOL "Use static OpenSSL" FORCE)
endif()
find_package(OpenSSL)
find_package(PahoMqttCpp)
if(NOT PahoMqttCpp_FOUND)
message(WARNING "PahoMqttCpp not found!\n"