Skip to content

Commit

Permalink
Merge pull request #1292 from LLNL/bugfix/chapman39/provide-way-to-di…
Browse files Browse the repository at this point in the history
…sable-serac-benchmarks

Provide a way to disable Serac benchmarks
  • Loading branch information
chapman39 authored Dec 17, 2024
2 parents 5f59e10 + 9bef76b commit 683ede4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/SeracBasics.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ endif()

option(SERAC_ENABLE_PROFILING "Enable profiling functionality" OFF)

if (ENABLE_BENCHMARKS)
set(SERAC_ENABLE_BENCHMARKS ON)
endif()
# ENABLE_BENCHMARKS must be ON in order to modify SERAC_ENABLE_BENCHMARKS.
# SERAC_ENABLE_BENCHMARKS will automatically be set to ON if ENABLE_BENCHMARKS is ON.
# SERAC_ENABLE_BENCHMARKS is an option to allow external projects to disable Serac benchmarks while enabling theirs.
cmake_dependent_option(SERAC_ENABLE_BENCHMARKS "Enable benchmark executables" ON "ENABLE_BENCHMARKS" OFF)

# User turned on benchmarking but explicitly turned off profiling. Error out.
if ((ENABLE_BENCHMARKS OR SERAC_ENABLE_BENCHMARKS) AND NOT SERAC_ENABLE_PROFILING)
Expand Down

0 comments on commit 683ede4

Please sign in to comment.