mirror of
https://github.com/google/benchmark.git
synced 2024-12-26 12:30:14 +08:00
fix(cmakelists.txt): enforce CMake to find PFM or fail when BENCHMARK_ENABLE_LIBPFM is ON (#1705)
Fixes #1702
This commit is contained in:
parent
54e4327190
commit
882f6f5ae0
@ -316,7 +316,7 @@ find_package(Threads REQUIRED)
|
||||
cxx_feature_check(PTHREAD_AFFINITY)
|
||||
|
||||
if (BENCHMARK_ENABLE_LIBPFM)
|
||||
find_package(PFM)
|
||||
find_package(PFM REQUIRED)
|
||||
endif()
|
||||
|
||||
# Set up directories
|
||||
|
Loading…
Reference in New Issue
Block a user