Skip to content

Commit f94954b

Browse files
committed
* Fixing catch2 dependency for workflows.
1 parent eec44a2 commit f94954b

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎test/CMakeLists.txt‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@ cmake_minimum_required (VERSION 3.12)
2727

2828
project ("tests")
2929

30-
find_package(Catch2 CONFIG REQUIRED)
30+
include(FetchContent)
31+
32+
FetchContent_Declare(
33+
Catch2
34+
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
35+
GIT_TAG v3.12.0
36+
)
37+
38+
FetchContent_MakeAvailable(Catch2)
3139

3240
option(ENABLE_DEPRECATED_TESTS "Enables tests for deprecated features" OFF)
3341

‎test/test.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <limits>
3232

3333
#define CATCH_CONFIG_MAIN
34-
#include <catch.hpp>
34+
#include <catch2/catch_test_macros.hpp>
3535

3636

3737

0 commit comments

Comments
 (0)