From 478b01249244da86ebef6b01642d05dc28c29b18 Mon Sep 17 00:00:00 2001 From: Steve Gerbino Date: Mon, 2 Mar 2026 19:56:41 +0100 Subject: [PATCH] Suppress confusing TLS provider warnings (#183) find_package for optional TLS providers (OpenSSL, WolfSSL) produced alarming "Could NOT find" messages that made them appear required. Use QUIET and print a status message only when found. --- cmake/CorosioBuild.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/CorosioBuild.cmake b/cmake/CorosioBuild.cmake index 354aa2d7..ec5d5bf0 100644 --- a/cmake/CorosioBuild.cmake +++ b/cmake/CorosioBuild.cmake @@ -113,7 +113,7 @@ function(corosio_find_tls_provider name) "PACKAGE;MINGW_TARGET" "LINK_TARGETS;MINGW_LIBS;WIN32_LIBS;FRAMEWORKS" ${ARGN}) - find_package(${_ARGS_PACKAGE}) + find_package(${_ARGS_PACKAGE} QUIET) # MinGW's linker is single-pass and order-sensitive; system libs must # follow the static libraries that reference them @@ -123,6 +123,7 @@ function(corosio_find_tls_provider name) endif() if(${_ARGS_PACKAGE}_FOUND) + message(STATUS "Building with ${_ARGS_PACKAGE} support") corosio_add_tls_library(${name}) target_link_libraries(boost_corosio_${name} PUBLIC ${_ARGS_LINK_TARGETS}) if(WIN32 AND NOT MINGW AND _ARGS_WIN32_LIBS)