diff --git a/CMakeLists.txt b/CMakeLists.txt index a0c2810d..740d20ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,8 +23,8 @@ FetchContent_Declare(libpybind11 ) FetchContent_Declare(libcatch2 - URL https://github.com/catchorg/Catch2/archive/v3.4.0.tar.gz - URL_HASH SHA1=4c308576c856a43dc88949a8f64ef90ebf94ae1b + URL https://github.com/catchorg/Catch2/archive/v3.7.1.tar.gz + URL_HASH SHA1=0c67df1524fd3ce88f656a3865ba4d4e4886168f DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1df6e0f6..149bc9aa 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -52,7 +52,7 @@ if (BUILD_TESTING) FetchContent_MakeAvailable(libcatch2) FetchContent_GetProperties(libcatch2) - target_include_directories(Catch2 INTERFACE ${libcatch2_SOURCE_DIR}/src) + list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras) add_executable(cpp_tests test_basic.cpp $