Skip to content

Commit 1c5d25d

Browse files
committed
Fix make-release-lib.ps1 to install curl and nlohmann-json in classic mode. The repo now has a vcpkg.json manifest, which made the plain install command fail because manifest mode rejects individual package arguments. The --classic flag installs them into the shared tree the merge step reads from.
1 parent 99b91f7 commit 1c5d25d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/make-release-lib.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ if (-not $cmakeExe) {
5353
if (-not $cmakeExe) { throw "cmake.exe not found." }
5454

5555
Write-Host "[1/4] Installing static-md curl + nlohmann-json via vcpkg..."
56-
& "$VcpkgRoot\vcpkg.exe" install "curl:$Triplet" "nlohmann-json:$Triplet" | Out-Host
56+
# --classic forces classic mode so these specific packages install into the shared
57+
# installed tree even though this repo has a vcpkg.json manifest. The merge step below
58+
# reads libcurl and zlib from that tree.
59+
& "$VcpkgRoot\vcpkg.exe" install "curl:$Triplet" "nlohmann-json:$Triplet" --classic | Out-Host
5760

5861
# ---- build Release and Debug with CMake (Visual Studio generator, MSVC) -----
5962
function Build-Config([string]$cfg) {

0 commit comments

Comments
 (0)