mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
Only check CRT on gtest_force_shared_crt.
This commit is contained in:
parent
e70e4db4b4
commit
630132096d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user