Skip to content

Commit 4297120

Browse files
urrskurfeex
andauthored
Update gtest to fix MacOS build warnings (#464)
Enabled warnings as errors for the MacOS build as well --------- Co-authored-by: Felix Exner <feex@universal-robots.com>
1 parent 53e3577 commit 4297120

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/mac-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v6
2727
- name: configure
28-
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
28+
run: >
29+
mkdir build && cd build &&
30+
cmake ..
31+
-DBUILDING_TESTS=1
32+
-DCMAKE_BUILD_TYPE=Debug
33+
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
34+
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
2935
- name: build
3036
run: cmake --build build
3137
- name: test

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include(FetchContent)
88
FetchContent_Declare(
99
googletest
1010
GIT_REPOSITORY https://github.com/google/googletest.git
11-
GIT_TAG v1.15.2
11+
GIT_TAG v1.17.0
1212
)
1313
# For Windows: Prevent overriding the parent project's compiler/linker settings
1414
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)