Skip to content

Commit

Permalink
Change gtest download branch
Browse files Browse the repository at this point in the history
- Branch 'main' instead of 'master'.
  • Loading branch information
gabyx committed Nov 18, 2021
1 parent 58892b8 commit 838f3ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .githooks/pre-commit/update-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
echo "Updating version"
rootDir=$(git rev-parse --show-toplevel) || exit 1
git describe --tags --abbrev=1 >"$rootDir/VERSION" || exit 1
git describe --tags --abbrev=0 >"$rootDir/VERSION" || exit 1
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.1.3-4-g7d9c
v2.1.3
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include(DownloadProject)
download_project(PROJ googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG master
GIT_TAG main
UPDATE_DISCONNECTED 1
)

Expand Down Expand Up @@ -64,7 +64,7 @@ macro(defineTarget TARGETNAME)

setTargetCompileOptions(${TARGETNAME})

if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(${TARGETNAME} PRIVATE -DApproxMVBB_BUILD_TESTS )
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
Expand Down

0 comments on commit 838f3ff

Please sign in to comment.