Skip to content

Commit

Permalink
Prevent installing gtest
Browse files Browse the repository at this point in the history
Fix #807
  • Loading branch information
RainerKuemmerle committed Jun 22, 2024
1 parent b43614e commit 501fc97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ FetchContent_Declare(
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
# Prevent installing gtest/gmock
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)

macro(create_test target)
Expand Down

0 comments on commit 501fc97

Please sign in to comment.