summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-15 14:30:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-15 14:30:46 (GMT)
commit7a8928eefc586b14fe3bff390ba3e60ef105241f (patch)
treea90abf7a4203be503c561d87d01db02b973ed7ed /Modules/FindThreads.cmake
parentc652215ca88ce4b66b3dbaa1476e11cbc826a2ee (diff)
downloadCMake-7a8928eefc586b14fe3bff390ba3e60ef105241f.zip
CMake-7a8928eefc586b14fe3bff390ba3e60ef105241f.tar.gz
CMake-7a8928eefc586b14fe3bff390ba3e60ef105241f.tar.bz2
fix thread logic
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake38
1 files changed, 20 insertions, 18 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index 5354b4d..623b4c4 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -44,25 +44,27 @@ IF(CMAKE_SYSTEM MATCHES "Windows")
SET(CMAKE_USE_WIN32_THREADS 1)
ENDIF(CMAKE_SYSTEM MATCHES "Windows")
-IF(CMAKE_SYSTEM MATCHES "HP-UX-*")
- SET(CMAKE_THREAD_LIBS "-lcma")
- SET(CMAKE_USE_PTHREADS 1)
- SET(CMAKE_HP_PTHREADS 1)
-ENDIF(CMAKE_SYSTEM MATCHES "HP-UX-*")
+IF(CMAKE_USE_PTHREADS)
+ IF(CMAKE_SYSTEM MATCHES "HP-UX-*")
+ SET(CMAKE_THREAD_LIBS "-lcma")
+ SET(CMAKE_USE_PTHREADS 1)
+ SET(CMAKE_HP_PTHREADS 1)
+ ENDIF(CMAKE_SYSTEM MATCHES "HP-UX-*")
-IF(CMAKE_SYSTEM MATCHES "OSF1-V*")
- SET(CMAKE_USE_PTHREADS 0)
- SET(CMAKE_THREAD_LIBS )
-ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V*")
+ IF(CMAKE_SYSTEM MATCHES "OSF1-V*")
+ SET(CMAKE_USE_PTHREADS 0)
+ SET(CMAKE_THREAD_LIBS )
+ ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V*")
-IF(CMAKE_SYSTEM MATCHES "FreeBSD*")
- SET(CMAKE_USE_PTHREADS 0)
- SET(CMAKE_THREAD_LIBS )
-ENDIF(CMAKE_SYSTEM MATCHES "FreeBSD*")
+ IF(CMAKE_SYSTEM MATCHES "FreeBSD*")
+ SET(CMAKE_USE_PTHREADS 0)
+ SET(CMAKE_THREAD_LIBS )
+ ENDIF(CMAKE_SYSTEM MATCHES "FreeBSD*")
-IF(CMAKE_SYSTEM MATCHES "CYGWIN_NT*")
- SET(CMAKE_USE_PTHREADS 1)
- SET(CMAKE_THREAD_LIBS )
- SET(CMAKE_USE_WIN32_THREADS 0)
-ENDIF(CMAKE_SYSTEM MATCHES "CYGWIN_NT*")
+ IF(CMAKE_SYSTEM MATCHES "CYGWIN_NT*")
+ SET(CMAKE_USE_PTHREADS 1)
+ SET(CMAKE_THREAD_LIBS )
+ SET(CMAKE_USE_WIN32_THREADS 0)
+ ENDIF(CMAKE_SYSTEM MATCHES "CYGWIN_NT*")
+ENDIF(CMAKE_USE_PTHREADS)