1
0
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:
Chris Cotter 2024-06-10 11:56:44 -04:00
parent 9329a42d52
commit 6004132b53
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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)