Skip to content

Commit

Permalink
fix: Catch2 v.3.5.0 changed output format [#241]
Browse files Browse the repository at this point in the history
* fix catch2_bench.cpp file
  • Loading branch information
ktrz committed May 19, 2024
1 parent fc8cd68 commit b481d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/catch2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif()

add_executable(${PROJECT_NAME})
target_sources(${PROJECT_NAME} PRIVATE catch2_bench.cpp)
target_link_libraries(${PROJECT_NAME} Catch2::Catch2)
target_link_libraries(${PROJECT_NAME} Catch2::Catch2WithMain)

target_compile_options(
${PROJECT_NAME}
Expand Down
4 changes: 2 additions & 2 deletions examples/catch2/catch2_bench.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "fib.hpp"
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/benchmark/catch_benchmark.hpp>

TEST_CASE("Fibonacci") {

Expand Down

0 comments on commit b481d47

Please sign in to comment.