Skip to content

Commit

Permalink
Force dynamic runtime linking in gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrodbec committed Jan 13, 2025
1 parent f934b49 commit baff537
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/fetch_googletest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
)

set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
add_library(GTest::GTest INTERFACE IMPORTED)
target_link_libraries(GTest::GTest INTERFACE gtest_main)
Expand Down

0 comments on commit baff537

Please sign in to comment.