[vcpkg] Override Boost_COMPILER setting for all packages and toolchain to enable mixing VS2015 and VS2017

This commit is contained in:
Robert Schumacher 2017-02-02 15:41:20 -08:00
parent 1888c7294f
commit b2b2c91369
2 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,8 @@ if(NOT VCPKG_TOOLCHAIN)
${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/manual-link
)
set(Boost_COMPILER "-vc140")
set(CMAKE_PROGRAM_PATH ${CMAKE_PROGRAM_PATH} ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/tools)
option(VCPKG_APPLOCAL_DEPS "Automatically copy dependencies into the output directory for executables." ON)

View File

@ -58,6 +58,7 @@ function(vcpkg_configure_cmake)
"-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON"
"-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON"
"-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON"
"-DBoost_COMPILER=-vc140"
)
if(DEFINED VCPKG_CRT_LINKAGE AND VCPKG_CRT_LINKAGE STREQUAL dynamic)
list(APPEND _csc_OPTIONS_DEBUG