The file build/src/CMakeFiles/Export/lib/cmake/benchmark/benchmarkTargets.cmake which is generated when building gbenchmark contains the following code on Linux:
set_target_properties(benchmark::benchmark PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "-pthread;/usr/lib/x86_64-linux-gnu/librt.so"
)
Instead of hard-coding the path to librt.so it should probably use -lrt. This is causing issues for conda packages (see conda-forge/benchmark-feedstock#5 (comment)).
The file
build/src/CMakeFiles/Export/lib/cmake/benchmark/benchmarkTargets.cmakewhich is generated when building gbenchmark contains the following code on Linux:Instead of hard-coding the path to
librt.soit should probably use-lrt. This is causing issues for conda packages (see conda-forge/benchmark-feedstock#5 (comment)).