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

fix #1702
  • Loading branch information
ananta committed Dec 1, 2023
1 parent 1e96bb0 commit d35aa07
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 @@ -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
Expand Down

0 comments on commit d35aa07

Please sign in to comment.