From 92cfa4e70e937ca39fdc9c237895f12af548e12b Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Mon, 23 Mar 2026 15:43:46 +0100 Subject: [PATCH] cmake: make Threads package search quiet This prevents printing message "-- Could NOT find Threads (missing: Threads_FOUND)" on platforms like Zephyr where threading is not provided by standard libraries. Signed-off-by: Valerio Setti --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42e4ccb34d..d5d0a98b8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ endif() # We now potentially need to link all executables against PThreads, if available set(CMAKE_THREAD_PREFER_PTHREAD TRUE) set(THREADS_PREFER_PTHREAD_FLAG TRUE) -find_package(Threads) +find_package(Threads QUIET) # If this is the root project add longer list of available CMAKE_BUILD_TYPE values if(NOT MBEDTLS_AS_SUBPROJECT)