From 630132096d2dbbc2d955b92ead1a92def7ffa350 Mon Sep 17 00:00:00 2001 From: Yuxuan He Date: Tue, 23 May 2017 09:40:38 +0800 Subject: Only check CRT on gtest_force_shared_crt. --- ports/gtest/portfile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3