mirror of
https://github.com/google/benchmark.git
synced 2024-12-26 04:20:14 +08:00
Prefer -pthread to -lpthread for better compatibility when cross-compiling (#771)
This commit is contained in:
parent
b8ca0c4217
commit
7c571338b5
@ -251,6 +251,7 @@ if (NOT BENCHMARK_ENABLE_EXCEPTIONS AND HAVE_STD_REGEX
|
||||
endif()
|
||||
cxx_feature_check(STEADY_CLOCK)
|
||||
# Ensure we have pthreads
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# Set up directories
|
||||
|
Loading…
Reference in New Issue
Block a user