summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeBackwardCompatibilityC.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-12 19:19:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-12 19:19:13 (GMT)
commit0b04a61366f519d2095693f2cc3382f9341d47c1 (patch)
tree7d6bf044999af22fb42b9aec45b77b2e75dc68dd /Modules/CMakeBackwardCompatibilityC.cmake
parent8b689f9a622722d5389d56602387fafe3d398464 (diff)
downloadCMake-0b04a61366f519d2095693f2cc3382f9341d47c1.zip
CMake-0b04a61366f519d2095693f2cc3382f9341d47c1.tar.gz
CMake-0b04a61366f519d2095693f2cc3382f9341d47c1.tar.bz2
add find threads check
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityC.cmake')
-rw-r--r--Modules/CMakeBackwardCompatibilityC.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/CMakeBackwardCompatibilityC.cmake b/Modules/CMakeBackwardCompatibilityC.cmake
index a41cc1c..b9a3a85 100644
--- a/Modules/CMakeBackwardCompatibilityC.cmake
+++ b/Modules/CMakeBackwardCompatibilityC.cmake
@@ -26,3 +26,27 @@ CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)
INCLUDE (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
+INCLUDE (${CMAKE_ROOT}/Modules/FindThreads.cmake)
+
+SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS}" CACHE STRING
+ "Thread library used.")
+
+SET (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS}" CACHE BOOL
+ "Use the pthreads library.")
+
+SET (CMAKE_USE_WIN32_THREADS "${CMAKE_USE_WIN32_THREADS}" CACHE BOOL
+ "Use the win32 thread library.")
+
+SET (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS} CACHE BOOL
+ "Use HP pthreads.")
+
+SET (CMAKE_USE_SPROC ${CMAKE_USE_SPROC} CACHE BOOL
+ "Use sproc libs.")
+
+MARK_AS_ADVANCED(
+CMAKE_THREAD_LIBS
+CMAKE_USE_PTHREADS
+CMAKE_USE_WIN32_THREADS
+CMAKE_USE_SPROC
+CMAKE_HP_PTHREADS)
+