commit | 7c571338b5cb13c2e3f5ce9106175c49c149c4a5 | [log] [tgz] |
---|---|---|
author | Wes McKinney <wesm@users.noreply.github.com> | Tue Feb 19 06:32:11 2019 -0600 |
committer | Dominic Hamon <dominichamon@users.noreply.github.com> | Tue Feb 19 12:32:11 2019 +0000 |
tree | 0a7e23d7552c775c0aff5e0686e991b0238c27ce | |
parent | b8ca0c42179b7b5d656494e61dda8b861057122f [diff] [blame] |
Prefer -pthread to -lpthread for better compatibility when cross-compiling (#771)
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e5fc5..a616009 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -251,6 +251,7 @@ endif() cxx_feature_check(STEADY_CLOCK) # Ensure we have pthreads +set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) # Set up directories