From 3500a6133d2cec5a1a377998919eb5a635abbdb0 Mon Sep 17 00:00:00 2001 From: Pierrick Guillaume Date: Mon, 17 Jun 2024 14:56:25 +0200 Subject: [PATCH] cmake: modules: fix FindThreads use of deprecated PTHREAD config With the update of the Kconfig symbols to new naming scheme, CONFIG_PTHREAD does not exist anymore. Use the new CONFIG_POSIX_THREADS instead Follow-up: #73047 Signed-off-by: Pierrick Guillaume --- cmake/modules/FindThreads.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/FindThreads.cmake b/cmake/modules/FindThreads.cmake index 943aa9eb171..a89ae3d5e0d 100644 --- a/cmake/modules/FindThreads.cmake +++ b/cmake/modules/FindThreads.cmake @@ -26,7 +26,7 @@ include(FindPackageHandleStandardArgs) set(Threads_FOUND FALSE) -if(DEFINED CONFIG_PTHREAD) +if(DEFINED CONFIG_POSIX_THREADS) set(Threads_FOUND TRUE) set(CMAKE_THREAD_LIBS_INIT ) set(CMAKE_USE_PTHREADS_INIT 1)