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 <pierguill@gmail.com>
This commit is contained in:
Pierrick Guillaume 2024-06-17 14:56:25 +02:00 committed by Anas Nashif
commit 3500a6133d

View file

@ -26,7 +26,7 @@ include(FindPackageHandleStandardArgs)
set(Threads_FOUND FALSE) set(Threads_FOUND FALSE)
if(DEFINED CONFIG_PTHREAD) if(DEFINED CONFIG_POSIX_THREADS)
set(Threads_FOUND TRUE) set(Threads_FOUND TRUE)
set(CMAKE_THREAD_LIBS_INIT ) set(CMAKE_THREAD_LIBS_INIT )
set(CMAKE_USE_PTHREADS_INIT 1) set(CMAKE_USE_PTHREADS_INIT 1)