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()