diff options
| author | Stephan T. Lavavej <stl@microsoft.com> | 2021-07-23 21:05:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-23 21:05:45 -0700 |
| commit | 134505003bb46e20fbace51ccfb69243fbbc5f82 (patch) | |
| tree | 45310a4b3984b78595499d31ddf35be1a089643b /ports | |
| parent | f7c83acf486c572d7b1ebe5894dc83bca4f5faef (diff) | |
| download | vcpkg-134505003bb46e20fbace51ccfb69243fbbc5f82.tar.gz vcpkg-134505003bb46e20fbace51ccfb69243fbbc5f82.zip | |
[boost] Fix `boost-modular-build.cmake` with VS 2022 17.0 Preview 2 (#19086)
* Fix boost-modular-build.cmake with VS 2022 17.0 Preview 2.
* Update another version list, noticed by @CaseyCarter.
* Update port-version to 1.
* Run `vcpkg.exe x-add-version --all`.
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/boost-modular-build-helper/boost-modular-build.cmake | 6 | ||||
| -rw-r--r-- | ports/boost-modular-build-helper/vcpkg.json | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/boost-modular-build-helper/boost-modular-build.cmake b/ports/boost-modular-build-helper/boost-modular-build.cmake index fecb98651..f8a35a207 100644 --- a/ports/boost-modular-build-helper/boost-modular-build.cmake +++ b/ports/boost-modular-build-helper/boost-modular-build.cmake @@ -300,7 +300,10 @@ function(boost_modular_build) endif()
set(MSVC_VERSION)
- if(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
+ if(VCPKG_PLATFORM_TOOLSET MATCHES "v143")
+ list(APPEND _bm_OPTIONS toolset=msvc)
+ set(MSVC_VERSION 14.3)
+ elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
list(APPEND _bm_OPTIONS toolset=msvc)
set(MSVC_VERSION 14.2)
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
@@ -410,6 +413,7 @@ function(boost_modular_build) string(REPLACE "-s-" "-" NEW_FILENAME ${NEW_FILENAME}) # For Release libs
string(REPLACE "-vc141-" "-vc140-" NEW_FILENAME ${NEW_FILENAME}) # To merge VS2017 and VS2015 binaries
string(REPLACE "-vc142-" "-vc140-" NEW_FILENAME ${NEW_FILENAME}) # To merge VS2019 and VS2015 binaries
+ string(REPLACE "-vc143-" "-vc140-" NEW_FILENAME ${NEW_FILENAME}) # To merge VS2022 and VS2015 binaries
string(REPLACE "-sgd-" "-gd-" NEW_FILENAME ${NEW_FILENAME}) # For Debug libs
string(REPLACE "-sgyd-" "-gyd-" NEW_FILENAME ${NEW_FILENAME}) # For Debug libs
string(REPLACE "-x32-" "-" NEW_FILENAME ${NEW_FILENAME}) # To enable CMake 3.10 and earlier to locate the binaries
diff --git a/ports/boost-modular-build-helper/vcpkg.json b/ports/boost-modular-build-helper/vcpkg.json index d7460d8db..192b42066 100644 --- a/ports/boost-modular-build-helper/vcpkg.json +++ b/ports/boost-modular-build-helper/vcpkg.json @@ -1,6 +1,7 @@ { "name": "boost-modular-build-helper", "version-string": "1.76.0", + "port-version": 1, "dependencies": [ "boost-build", "boost-uninstall" |
