summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-11 16:27:01 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 16:17:18 (GMT)
commit3a71d34cf3a10ee215ae3899acafd29551ba6e7e (patch)
tree93742fd3f43657dedf1d5420d3bb72e525a79ff5 /Modules/FindThreads.cmake
parentb0b4b4602fd5f8508d6fcbb9ea3236585e6368e2 (diff)
downloadCMake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.zip
CMake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.tar.gz
CMake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.tar.bz2
Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index b5cc67f..6050dcd 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -41,7 +41,7 @@ set(CMAKE_REQUIRED_QUIET_SAVE ${CMAKE_REQUIRED_QUIET})
set(CMAKE_REQUIRED_QUIET ${Threads_FIND_QUIETLY})
# Do we have sproc?
-if(CMAKE_SYSTEM MATCHES IRIX AND NOT CMAKE_THREAD_PREFER_PTHREAD)
+if(CMAKE_SYSTEM_NAME MATCHES IRIX AND NOT CMAKE_THREAD_PREFER_PTHREAD)
CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SPROC_H)
endif()
@@ -138,13 +138,13 @@ if(CMAKE_THREAD_LIBS_INIT OR CMAKE_HAVE_LIBC_CREATE)
set(Threads_FOUND TRUE)
endif()
-if(CMAKE_SYSTEM MATCHES "Windows")
+if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(CMAKE_USE_WIN32_THREADS_INIT 1)
set(Threads_FOUND TRUE)
endif()
if(CMAKE_USE_PTHREADS_INIT)
- if(CMAKE_SYSTEM MATCHES "HP-UX-*")
+ if(CMAKE_SYSTEM_NAME MATCHES "HP-UX")
# Use libcma if it exists and can be used. It provides more
# symbols than the plain pthread library. CMA threads
# have actually been deprecated: