FindThreads: simplify checking for SunOS

This commit is contained in:
Rolf Eike Beer 2014-03-25 23:49:54 +01:00
parent 858ce31f4c
commit 693f8bf34d

View File

@ -80,7 +80,7 @@ else()
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(Threads_FOUND TRUE)
elseif(CMAKE_SYSTEM MATCHES "SunOS.*")
elseif(CMAKE_SYSTEM_NAME MATCHES "SunOS")
# On sun also check for -lthread
CHECK_LIBRARY_EXISTS(thread thr_create "" CMAKE_HAVE_THR_CREATE)
if(CMAKE_HAVE_THR_CREATE)