Skip to content

Commit

Permalink
gtest: switch to the main branch as default tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent authored Jul 24, 2024
1 parent 91b8f5f commit d8defa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gtest.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2018 INRIA
# Copyright (C) 2018-2024 INRIA
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
Expand All @@ -20,15 +20,15 @@ set(CURRENT_FILE_PATH
# .rst: .. command:: ADD_GTEST_SUITE([GIT_TAG])
#
# GIT_TAG: the git tag of gtest. This optional argument allows to use a precise
# version of gtest (not necessarily the last master branch).
# version of gtest (not necessarily the last main branch).
#
# Download and configure gtest. This macro follows the
# https://github.com/google/googletest/tree/master/googletest#incorporating-into-an-existing-cmake-project
# https://github.com/google/googletest/tree/main/googletest#incorporating-into-an-existing-cmake-project
# instructions.
#
macro(ADD_GTEST_SUITE)
# Handle optional argument
set(GTEST_GIT_TAG "master")
set(GTEST_GIT_TAG "main")
set(extra_macro_args ${ARGN})
list(LENGTH extra_macro_args num_extra_args)
if(${num_extra_args} GREATER 0)
Expand Down

0 comments on commit d8defa9

Please sign in to comment.