aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuxuan He <yuxuan.he@hypereal.com>2017-05-23 09:40:38 +0800
committerYuxuan He <yuxuan.he@hypereal.com>2017-05-23 09:40:38 +0800
commit630132096d2dbbc2d955b92ead1a92def7ffa350 (patch)
treeedc42aa596056bcc6dd3d498eb37e26c341882d7
parente70e4db4b46e925c1867ba9880eb5a2b3fb741a3 (diff)
downloadvcpkg-630132096d2dbbc2d955b92ead1a92def7ffa350.tar.gz
vcpkg-630132096d2dbbc2d955b92ead1a92def7ffa350.zip
Only check CRT on gtest_force_shared_crt.
-rw-r--r--ports/gtest/portfile.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/gtest/portfile.cmake b/ports/gtest/portfile.cmake
index a92eec31a..0bfe4e60c 100644
--- a/ports/gtest/portfile.cmake
+++ b/ports/gtest/portfile.cmake
@@ -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)