From d35aa077881d54c1cac787fae53a65bc2740e131 Mon Sep 17 00:00:00 2001 From: ananta <12180395+ananta@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:50:59 -0500 Subject: [PATCH] fix(cmakelists.txt): enforce CMake to find PFM or fail when BENCHMARK_ENABLE_LIBPFM is ON fix #1702 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5757283296..c591ca1881 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,7 +312,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