summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-03-25 21:46:11 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-03-25 21:46:11 (GMT)
commitfdf7bd27a30fa53ae6f4239088444baba1d7f84e (patch)
treed8f166b14e57e8acf55e25e943c9a78b4d7f3d4c /Modules/FindThreads.cmake
parenta56a8f95364e6ec1fc50cb6a792325d914c16235 (diff)
downloadCMake-fdf7bd27a30fa53ae6f4239088444baba1d7f84e.zip
CMake-fdf7bd27a30fa53ae6f4239088444baba1d7f84e.tar.gz
CMake-fdf7bd27a30fa53ae6f4239088444baba1d7f84e.tar.bz2
FindThreads: replace MATCHES with STREQUAL
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index ec671bf..d7473a7 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -96,7 +96,7 @@ else()
if(NOT CMAKE_HAVE_THREADS_LIBRARY)
# If we did not found -lpthread, -lpthread, or -lthread, look for -pthread
- if("THREADS_HAVE_PTHREAD_ARG" MATCHES "^THREADS_HAVE_PTHREAD_ARG")
+ if("x${THREADS_HAVE_PTHREAD_ARG}" STREQUAL "x")
message(STATUS "Check if compiler accepts -pthread")
try_run(THREADS_PTHREAD_ARG THREADS_HAVE_PTHREAD_ARG
${CMAKE_BINARY_DIR}