diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-05-22 22:49:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-22 22:49:31 -0700 |
| commit | 205c575fd9f07c2a7c124aab56d5a5358066d8bb (patch) | |
| tree | a0ead940c07301961a826429333b6955327955b8 | |
| parent | 6e675a1a708616cb24fc899eff7345b0cc6d8d2a (diff) | |
| parent | 630132096d2dbbc2d955b92ead1a92def7ffa350 (diff) | |
| download | vcpkg-205c575fd9f07c2a7c124aab56d5a5358066d8bb.tar.gz vcpkg-205c575fd9f07c2a7c124aab56d5a5358066d8bb.zip | |
Merge pull request #1138 from laohyx/master
Add support for gtest's dynamic CRT + static linking.
| -rw-r--r-- | ports/gtest/portfile.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/gtest/portfile.cmake b/ports/gtest/portfile.cmake index ea5186e47..0bfe4e60c 100644 --- a/ports/gtest/portfile.cmake +++ b/ports/gtest/portfile.cmake @@ -17,8 +17,15 @@ 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") + set(gtest_force_shared_crt YES) +else() + set(gtest_force_shared_crt NO) +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} + OPTIONS -Dgtest_force_shared_crt=${gtest_force_shared_crt} ) vcpkg_install_cmake() |
