mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 05:40:14 +08:00
Move pthread dependency to test CMakeLists.txt
This commit is contained in:
parent
cfb34b5957
commit
a13627bc3a
@ -4,9 +4,6 @@ project (benchmark)
|
||||
# Make sure we can import out CMake functions
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
# Resolve dependent packages
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# Import and build Google Test
|
||||
include(ExternalProject)
|
||||
set_directory_properties(properties EP_PREFIX "${CMAKE_BINARY_DIR}/third_party")
|
||||
|
@ -1,3 +1,5 @@
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# Demonstration executable
|
||||
add_executable(benchmark_test benchmark_test.cc)
|
||||
target_link_libraries(benchmark_test benchmark ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
Loading…
Reference in New Issue
Block a user