Skip to content

Commit baff537

Browse files
author
nbrodbec
committed
Force dynamic runtime linking in gtest
1 parent f934b49 commit baff537

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/fetch_googletest.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ googletest
1010
GIT_REPOSITORY https://github.com/google/googletest.git
1111
GIT_TAG release-1.11.0
1212
)
13+
14+
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
1315
FetchContent_MakeAvailable(googletest)
1416
add_library(GTest::GTest INTERFACE IMPORTED)
1517
target_link_libraries(GTest::GTest INTERFACE gtest_main)

0 commit comments

Comments
 (0)