mirror of
https://github.com/google/benchmark.git
synced 2024-12-28 05:20:14 +08:00
c2146397ac
Currently, Google Benchmark can be built and installed with support for libpfm, but this can cause a problem if that installation is later called upon by another CMake project. Indeed, while the installed CMake configuration script correctly identifies that it needs to link against libpfm, it doesn't try to find libpfm, meaning that the target will be unavailable. This commit fixes this potential configuration-time error by ensuring that an installation of Google Benchmark will correctly try to find the libpfm dependency when it is used elsewhere.
12 lines
210 B
CMake
12 lines
210 B
CMake
@PACKAGE_INIT@
|
|
|
|
include (CMakeFindDependencyMacro)
|
|
|
|
find_dependency (Threads)
|
|
|
|
if (@BENCHMARK_ENABLE_LIBPFM@)
|
|
find_dependency (PFM)
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
|