From 0e4c999b21c0ba09eb21fea2722f97c9a6c2ac50 Mon Sep 17 00:00:00 2001 From: Damian Jarek Date: Fri, 5 Apr 2019 04:13:10 +0200 Subject: [PATCH] Fix installation failure when system Boost present (#5939) Boost 1.70 introduces "native" cmake config scripts which are accidentally used when installing a vcpkg package. This only occurs when Boost 1.70 is installed in the system when the user uses `vcpkg install`. Signed-off-by: Damian Jarek --- scripts/buildsystems/vcpkg.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index b8037f4665..b2a5894218 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -192,6 +192,7 @@ macro(find_package name) set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) unset(Boost_USE_STATIC_RUNTIME) + set(Boost_NO_BOOST_CMAKE ON) unset(Boost_USE_STATIC_RUNTIME CACHE) set(Boost_COMPILER "-vc140") _find_package(${ARGV})