Only check CRT on gtest_force_shared_crt.

This commit is contained in:
Yuxuan He 2017-05-23 09:40:38 +08:00
parent e70e4db4b4
commit 630132096d

View File

@ -17,7 +17,7 @@ vcpkg_apply_patches(
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Enable-C-11-features-for-VS2015-fix-appveyor-fail.patch
)
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic" AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")
set(gtest_force_shared_crt YES)
else()
set(gtest_force_shared_crt NO)