Skip to content

Commit

Permalink
fix(cmakelists.txt): enforce CMake to find PFM or fail when BENCHMARK…
Browse files Browse the repository at this point in the history
…_ENABLE_LIBPFM is ON (#1705)

Fixes #1702
  • Loading branch information
ananta authored Jan 9, 2024
1 parent 54e4327 commit 882f6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 882f6f5

Please sign in to comment.