mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 08:49:10 +08:00
[boost-modular-build-helper] Use boost's correct .jam file. (#22274)
* Use boost's correct .jam file. Use boost's clang-win.jam configuration file when using Clang-cl to allow cross-compilation for Windows. * Update port-version. * Clang seems fine here. * Run vcpkg x-add-version boost-modular-build-helper * Apply suggestions from code review Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Run vcpkg x-add-version --overwrite-version boost-modular-build-helper Co-authored-by: Nemirtingas <nanaki89@hotmail.fr> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
This commit is contained in:
parent
9117f195fa
commit
5be51c9516
@ -51,25 +51,38 @@ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" AND WIN32)
|
||||
list(APPEND B2_OPTIONS "asmflags=/safeseh")
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(USER_CONFIG_TOOLSET msvc)
|
||||
if(MSVC_VERSION LESS 1900)
|
||||
math(EXPR USER_CONFIG_TOOLSET_VERSION "${MSVC_VERSION} / 10 - 60")
|
||||
if(WIN32)
|
||||
if(MSVC)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(USER_CONFIG_TOOLSET clang-win)
|
||||
else()
|
||||
set(USER_CONFIG_TOOLSET msvc)
|
||||
endif()
|
||||
if(MSVC_VERSION LESS 1900)
|
||||
math(EXPR USER_CONFIG_TOOLSET_VERSION "${MSVC_VERSION} / 10 - 60")
|
||||
else()
|
||||
math(EXPR USER_CONFIG_TOOLSET_VERSION "${MSVC_VERSION} / 10 - 50")
|
||||
endif()
|
||||
else()
|
||||
math(EXPR USER_CONFIG_TOOLSET_VERSION "${MSVC_VERSION} / 10 - 50")
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(USER_CONFIG_TOOLSET clang)
|
||||
else()
|
||||
set(USER_CONFIG_TOOLSET gcc)
|
||||
endif()
|
||||
endif()
|
||||
list(APPEND B2_OPTIONS target-os=windows)
|
||||
elseif(APPLE)
|
||||
set(USER_CONFIG_TOOLSET clang)
|
||||
list(APPEND B2_OPTIONS target-os=darwin)
|
||||
elseif(WIN32)
|
||||
set(USER_CONFIG_TOOLSET gcc)
|
||||
list(APPEND B2_OPTIONS target-os=windows)
|
||||
elseif(ANDROID)
|
||||
set(USER_CONFIG_TOOLSET gcc)
|
||||
list(APPEND B2_OPTIONS target-os=android)
|
||||
else()
|
||||
set(USER_CONFIG_TOOLSET gcc)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(USER_CONFIG_TOOLSET clang)
|
||||
else()
|
||||
set(USER_CONFIG_TOOLSET gcc)
|
||||
endif()
|
||||
list(APPEND B2_OPTIONS target-os=linux)
|
||||
endif()
|
||||
|
||||
|
@ -17,7 +17,7 @@ if "@PORT@" = "boost-mpi" || "@PORT@" = "boost-graph-parallel"
|
||||
|
||||
project user-config : ;
|
||||
|
||||
if "@USER_CONFIG_TOOLSET@" = "msvc"
|
||||
if "@USER_CONFIG_TOOLSET@" = "msvc" || "@USER_CONFIG_TOOLSET@" = "clang-win"
|
||||
{
|
||||
lib advapi32 ;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "boost-modular-build-helper",
|
||||
"version": "1.77.0",
|
||||
"port-version": 4,
|
||||
"port-version": 5,
|
||||
"description": "Internal vcpkg port used to build Boost libraries",
|
||||
"dependencies": [
|
||||
"boost-uninstall"
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "48cc9da813626ac4733698e65368e5581f4efb59",
|
||||
"version": "1.77.0",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "aea8b4dbb8063db29d8ac843ef6aac35478bebaa",
|
||||
"version": "1.77.0",
|
||||
|
@ -826,7 +826,7 @@
|
||||
},
|
||||
"boost-modular-build-helper": {
|
||||
"baseline": "1.77.0",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"boost-move": {
|
||||
"baseline": "1.77.0",
|
||||
|
Loading…
Reference in New Issue
Block a user