Skip to content

Commit

Permalink
fix(cpn): Prevent googletest installation (#4265)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic authored Oct 30, 2023
1 parent 1bb624c commit d5989ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/FetchGtest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ FetchContent_Declare(
GIT_TAG f8d7d77c06936315286eb55f8de22cd23c188571 # v1.14.0
)

# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

option(BUILD_GMOCK "Build GMock" OFF)
option(INSTALL_GTEST "Install GTest" OFF)

FetchContent_MakeAvailable(googletest)

include_directories(
Expand Down

0 comments on commit d5989ec

Please sign in to comment.