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:
parent
6ced73e552
commit
3500a6133d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue