summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-03 13:57:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-03 13:57:53 (GMT)
commitd114fc373c1499689265c6c12e95b86f2930b227 (patch)
tree60f5a5b2b8d8fd40fb63d86c0c2d5da470e35eea /Modules/FindThreads.cmake
parente57b6a25211ea28b7b01aadfc3aaf1de79455bdb (diff)
parentcd4451d1e738a729a1a8d0ed34b544cada1de078 (diff)
downloadCMake-d114fc373c1499689265c6c12e95b86f2930b227.zip
CMake-d114fc373c1499689265c6c12e95b86f2930b227.tar.gz
CMake-d114fc373c1499689265c6c12e95b86f2930b227.tar.bz2
Merge topic 'useless-MATCHES'
cd4451d replace string(... MATCHES "^const$) with string(... STREQUAL "const")
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 5d76777..f03908e 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -93,7 +93,7 @@ else()
COMPILE_OUTPUT_VARIABLE OUTPUT)
if(THREADS_HAVE_PTHREAD_ARG)
- if(THREADS_PTHREAD_ARG MATCHES "^2$")
+ if(THREADS_PTHREAD_ARG STREQUAL "2")
set(Threads_FOUND TRUE)
message(STATUS "Check if compiler accepts -pthread - yes")
else()