Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brad King
CMake
Commits
fdf7bd27
Commit
fdf7bd27
authored
Mar 25, 2014
by
Rolf Eike Beer
Browse files
FindThreads: replace MATCHES with STREQUAL
parent
a56a8f95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/FindThreads.cmake
View file @
fdf7bd27
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment