diff options
author | Brad King <brad.king@kitware.com> | 2007-09-24 13:53:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-09-24 13:53:41 (GMT) |
commit | c5b197842fe784c47d281584d4fc0b6c2973aff6 (patch) | |
tree | e9415506dd45ce7c94578ae08bad4ad53c65cd21 /Modules/FindThreads.cmake | |
parent | 769af64d7f4fb2187b4f8d85e0357b7b8e13181f (diff) | |
download | CMake-c5b197842fe784c47d281584d4fc0b6c2973aff6.zip CMake-c5b197842fe784c47d281584d4fc0b6c2973aff6.tar.gz CMake-c5b197842fe784c47d281584d4fc0b6c2973aff6.tar.bz2 |
BUG: Enable CMAKE_HP_PTHREADS only when the old CMA threads are available. Modern HP pthreads are just normal pthreads.
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r-- | Modules/FindThreads.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake index f7c19b8..98031e2 100644 --- a/Modules/FindThreads.cmake +++ b/Modules/FindThreads.cmake @@ -95,12 +95,14 @@ IF(CMAKE_USE_PTHREADS_INIT) # http://docs.hp.com/en/B3920-90091/ch12s03.html#d0e11395 # http://docs.hp.com/en/947/d8.html # but we need to maintain compatibility here. + # The CMAKE_HP_PTHREADS setting actually indicates whether CMA threads + # are available. CHECK_LIBRARY_EXISTS(cma pthread_attr_create "" CMAKE_HAVE_HP_CMA) IF(CMAKE_HAVE_HP_CMA) SET(CMAKE_THREAD_LIBS_INIT "-lcma") + SET(CMAKE_HP_PTHREADS_INIT 1) ENDIF(CMAKE_HAVE_HP_CMA) SET(CMAKE_USE_PTHREADS_INIT 1) - SET(CMAKE_HP_PTHREADS_INIT 1) ENDIF(CMAKE_SYSTEM MATCHES "HP-UX-*") IF(CMAKE_SYSTEM MATCHES "OSF1-V*") |