Skip to content

Commit

Permalink
Use BENCHMARK_PRIVATE_LINK_LIBRARIES
Browse files Browse the repository at this point in the history
  • Loading branch information
ccotter committed Jun 10, 2024
1 parent 9329a42 commit 6004132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/benchmark.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6004132

Please sign in to comment.