diff options
| -rw-r--r-- | ports/gtest/portfile.cmake | 2 |
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) |
