From 63454f618996baefef3f60f90767cd4c02d7590d Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Fri, 28 Jul 2017 11:44:54 -0700 Subject: [PATCH] [vcpkg-cmake] Always search for dynamic boost libraries --- scripts/buildsystems/vcpkg.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 41bdb3e60a..8fd08ffb62 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -138,6 +138,13 @@ if(NOT VCPKG_TOOLCHAIN) endif() endfunction() + function(find_package name) + if(name STREQUAL "Boost") + unset(Boost_USE_STATIC_LIBS) + endif() + _find_package(${ARGV}) + endfunction() + set(VCPKG_TOOLCHAIN ON) endif()