mirror of https://github.com/google/benchmark.git
Link pthread as an INTERFACE library.
This commit is contained in:
parent
89a1edae15
commit
3078ce9bc5
|
@ -20,7 +20,7 @@ endif()
|
|||
add_library(benchmark ${SOURCE_FILES} ${RE_FILES})
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(benchmark ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_link_libraries(benchmark INTERFACE ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
set_target_properties(benchmark PROPERTIES
|
||||
OUTPUT_NAME "benchmark"
|
||||
|
|
Loading…
Reference in New Issue