Skip to content

Commit

Permalink
Merge pull request #808 from RainerKuemmerle/rainer/807
Browse files Browse the repository at this point in the history
Prevent installing gtest
  • Loading branch information
RainerKuemmerle authored Jun 22, 2024
2 parents b43614e + 501fc97 commit b83aa1b
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 b83aa1b

Please sign in to comment.