FindThreads: Fix pthread library check in GHS Multi Generator

This commit is contained in:
Naren Manimohan
2019-03-13 16:06:59 +01:00
committed by Brad King
parent 0404efe786
commit 2c43fb5be3

View File

@@ -161,6 +161,9 @@ if(CMAKE_HAVE_PTHREAD_H)
_check_pthreads_flag()
endif ()
if(CMAKE_SYSTEM MATCHES "GHS-MULTI")
_check_threads_lib(posix pthread_create CMAKE_HAVE_PTHREADS_CREATE)
endif()
_check_threads_lib(pthreads pthread_create CMAKE_HAVE_PTHREADS_CREATE)
_check_threads_lib(pthread pthread_create CMAKE_HAVE_PTHREAD_CREATE)
if(CMAKE_SYSTEM_NAME MATCHES "SunOS")