summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorNaren Manimohan <narendhar15@gmail.com>2019-03-13 15:06:59 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-21 16:57:44 (GMT)
commit2c43fb5be345b75d12bba227979efd74b810b49a (patch)
tree2d7b1bbf7ecdd1e73e6d81ef120e4e71acfa7cc7 /Modules/FindThreads.cmake
parent0404efe786b1e2c5c28065a53e55ec77217e7b49 (diff)
downloadCMake-2c43fb5be345b75d12bba227979efd74b810b49a.zip
CMake-2c43fb5be345b75d12bba227979efd74b810b49a.tar.gz
CMake-2c43fb5be345b75d12bba227979efd74b810b49a.tar.bz2
FindThreads: Fix pthread library check in GHS Multi Generator
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index 3684f01..d317b71 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -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")