Skip to content

Commit

Permalink
Fix catch2 compilation
Browse files Browse the repository at this point in the history
As per title
  • Loading branch information
Nicogene authored Nov 11, 2024
1 parent 392eec5 commit b6b8bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ set(ROBOMETRY_TEST_TIMEOUT ${ROBOMETRY_TEST_TIMEOUT_DEFAULT_VALGRIND})
if(BUILD_TESTING)

if(ROBOMETRY_USES_SYSTEM_Catch2)
find_package(Catch 3.2.1 REQUIRED)
find_package(Catch 3.7.1 REQUIRED)
else()
include(FetchContent)

message(STATUS "Fetching Catch...")

FetchContent_Declare(Catch
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.2.1)
GIT_TAG v3.7.1)

FetchContent_MakeAvailable(Catch)
endif()
Expand Down

0 comments on commit b6b8bbc

Please sign in to comment.