mirror of
https://github.com/google/benchmark.git
synced 2025-04-17 23:12:30 +08:00
Use BENCHMARK_PRIVATE_LINK_LIBRARIES
This commit is contained in:
parent
9329a42d52
commit
6004132b53
@ -8,5 +8,5 @@ Description: Google microbenchmark framework
|
||||
Version: @VERSION@
|
||||
|
||||
Libs: -L${libdir} -lbenchmark
|
||||
Libs.private: -lpthread @pkg_config_private_libs@
|
||||
Libs.private: -lpthread @BENCHMARK_PRIVATE_LINK_LIBRARIES@
|
||||
Cflags: -I${includedir}
|
||||
|
@ -64,7 +64,7 @@ endif()
|
||||
# We need extra libraries on Solaris
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
target_link_libraries(benchmark PRIVATE kstat)
|
||||
set(pkg_config_private_libs -lkstat)
|
||||
set(BENCHMARK_PRIVATE_LINK_LIBRARIES -lkstat)
|
||||
endif()
|
||||
|
||||
if (NOT BUILD_SHARED_LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user