diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-03-25 22:49:54 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-03-25 22:49:54 (GMT) |
commit | 693f8bf34df5aaf22ed30039eff181352ed6574a (patch) | |
tree | 1e3638be9c2ae7877211eeea378463a8bbcb6bb8 | |
parent | 858ce31f4cd8d247a6dd7b8ae70ab9a38f71e7a2 (diff) | |
download | CMake-693f8bf34df5aaf22ed30039eff181352ed6574a.zip CMake-693f8bf34df5aaf22ed30039eff181352ed6574a.tar.gz CMake-693f8bf34df5aaf22ed30039eff181352ed6574a.tar.bz2 |
FindThreads: simplify checking for SunOS
-rw-r--r-- | Modules/FindThreads.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake index ff8aa29..7f84522 100644 --- a/Modules/FindThreads.cmake +++ b/Modules/FindThreads.cmake @@ -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) |