Mention to explicitely set the option to it's default.
This commit is contained in:
parent
38c316fc5c
commit
c79eb87c11
@ -96,6 +96,8 @@ FetchContent_Declare(
|
|||||||
googletest
|
googletest
|
||||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||||
)
|
)
|
||||||
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||||
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||||
FetchContent_MakeAvailable(googletest)
|
FetchContent_MakeAvailable(googletest)
|
||||||
|
|
||||||
# Now simply link against gtest or gtest_main as needed. Eg
|
# Now simply link against gtest or gtest_main as needed. Eg
|
||||||
|
Loading…
Reference in New Issue
Block a user