From b9690e9cd14188a5f6ab994cfea98f33447c487e Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 31 Mar 2026 04:50:23 +0200 Subject: [PATCH] cmake: silence bad library `Threads::Threads` warning Seen on macOS: ``` CMake Warning at CMakeLists.txt:2158 (message): Bad lib in library list: Threads::Threads ``` Follow-up to 2d546d239ecd455b6459e68b85ef8d4b045c0a00 #21163 Closes #21170 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17c54395bb..88a4c29e35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2154,7 +2154,7 @@ if(NOT CURL_DISABLE_INSTALL) curl_collect_target_link_options("${_lib}") # look into the target recursively list(APPEND _explicit_libdirs ${_libdirs}) list(APPEND _explicit_libs ${_libs}) - if(NOT _libs AND NOT _libdirs) + if(NOT _libs AND NOT _libdirs AND NOT _lib STREQUAL Threads::Threads) message(WARNING "Bad lib in library list: ${_lib}") endif() if(_lib STREQUAL OpenSSL::SSL AND NOT HAVE_BORINGSSL) # BoringSSL does not provide openssl.pc