Skip to content

Commit

Permalink
[boost-modular-build-helper] Do not force initialize B2_OPTIONS (micr…
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaLiu0311 authored Mar 19, 2024
1 parent 49e80bf commit 7ef7293
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
9 changes: 8 additions & 1 deletion ports/boost-modular-build-helper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ set(USER_CONFIG_TOOLSET_OPTIONS "")
set(USER_CONFIG_EXTRA_LINES "")
set(USER_CONFIG_REQUIREMENTS "")

set(B2_OPTIONS "")
# Avoid forcing initialization of B2_OPTIONS here to allow some users to add custom configuration options to this command via VCPKG_CHAINLOAD_TOOLCHAIN_FILE.
if(NOT DEFINED B2_OPTIONS)
set(B2_OPTIONS "")
endif()


include("${VCPKG_CMAKE_VARS_FILE}")

Expand Down Expand Up @@ -247,6 +251,9 @@ if(NOT python_versions STREQUAL "")
endif()
endif()

# Remove duplicates from B2_OPTIONS since VCPKG_CHAINLOAD_TOOLCHAIN_FILE may be loaded multiple times in some cases.
list(REMOVE_DUPLICATES B2_OPTIONS)

if("${PORT}" STREQUAL "boost-mpi" OR "${PORT}" STREQUAL "boost-graph-parallel")
string(APPEND USER_CONFIG_EXTRA_LINES
"using mpi : : <library-path>\"${CURRENT_INSTALLED_DIR}/lib\"\n"
Expand Down
2 changes: 1 addition & 1 deletion ports/boost-modular-build-helper/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-modular-build-helper",
"version": "1.84.0",
"port-version": 2,
"port-version": 3,
"description": "Internal vcpkg port used to build Boost libraries",
"license": "MIT",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/boost/generate-ports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $semverVersion = ($version -replace "(\d+(\.\d+){1,3}).*", "`$1")
# Clear this array when moving to a new boost version
$defaultPortVersion = 0
$portVersions = @{
'boost-modular-build-helper' = 2;
'boost-modular-build-helper' = 3;
}

function Get-PortVersion {
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/boost-modular-build-helper.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "04390ecd44200648eb89147cb4e11b196d2dc515",
"version": "1.84.0",
"port-version": 3
},
{
"git-tree": "b3eb3e3fdc08ffe6e8f9e19e761e583790aaf308",
"version": "1.84.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@
},
"boost-modular-build-helper": {
"baseline": "1.84.0",
"port-version": 2
"port-version": 3
},
"boost-move": {
"baseline": "1.84.0",
Expand Down

0 comments on commit 7ef7293

Please sign in to comment.