mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 05:40: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()
|
endif()
|
||||||
cxx_feature_check(STEADY_CLOCK)
|
cxx_feature_check(STEADY_CLOCK)
|
||||||
# Ensure we have pthreads
|
# Ensure we have pthreads
|
||||||
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
# Set up directories
|
# Set up directories
|
||||||
|
Loading…
Reference in New Issue
Block a user