catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix benchmarking in stand-alone files
- Commit
25cc09dcec5f8f0ada75560bc4e182f815689341- Author
- Martin Hořeňovský ·
- Parents
f9dce28e7db8
Changes
include/catch.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/catch.hpp b/include/catch.hpp index b63cc7fe..34130849 100644 --- a/include/catch.hpp +++ b/include/catch.hpp @@ -74,7 +74,8 @@ #include "internal/catch_objc.hpp" #endif -#ifdef CATCH_CONFIG_EXTERNAL_INTERFACES +// Benchmarking needs the externally-facing parts of reporters to work +#if defined(CATCH_CONFIG_EXTERNAL_INTERFACES) || defined(CATCH_CONFIG_ENABLE_BENCHMARKING) #include "internal/catch_external_interfaces.h" #endif