diff options
| author | Yuxuan He <yuxuan.he@hypereal.com> | 2017-05-23 09:40:38 +0800 |
|---|---|---|
| committer | Yuxuan He <yuxuan.he@hypereal.com> | 2017-05-23 09:40:38 +0800 |
| commit | 630132096d2dbbc2d955b92ead1a92def7ffa350 (patch) | |
| tree | edc42aa596056bcc6dd3d498eb37e26c341882d7 | |
| parent | e70e4db4b46e925c1867ba9880eb5a2b3fb741a3 (diff) | |
| download | vcpkg-630132096d2dbbc2d955b92ead1a92def7ffa350.tar.gz vcpkg-630132096d2dbbc2d955b92ead1a92def7ffa350.zip | |
Only check CRT on gtest_force_shared_crt.
| -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) |
