mirror of
https://github.com/google/benchmark.git
synced 2025-04-03 16:10:58 +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)
|
cxx_feature_check(PTHREAD_AFFINITY)
|
||||||
|
|
||||||
if (BENCHMARK_ENABLE_LIBPFM)
|
if (BENCHMARK_ENABLE_LIBPFM)
|
||||||
find_package(PFM)
|
find_package(PFM REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set up directories
|
# Set up directories
|
||||||
|
Loading…
Reference in New Issue
Block a user