Skip to content

Commit aaeaa2a

Browse files
committed
Updated Catch2 git download strategy
Catch2 no longer uses 'master' as the default branch, as CMake tries to use. As such, the specific tag 'v2.x' is to be used, which safely follows Catch2's releases.
1 parent 3d2d5a9 commit aaeaa2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prepare_catch.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function(prepare_catch)
6969
git_catch
7070
PREFIX ${CMAKE_BINARY_DIR}/catch2
7171
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
72+
GIT_TAG v2.x
7273
GIT_SHALLOW 1
7374
TIMEOUT 10
7475
UPDATE_COMMAND ${GIT_EXECUTABLE} pull

0 commit comments

Comments
 (0)