diff --git a/README.md b/README.md index c9970cc..c29ab38 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Requirements: Visual Studio 2022 (C++ workload), CMake, 7-Zip. .\scripts\Build-QuantLibDLL.ps1 -PackageZip ``` +By default the working directory is `build/` and the install directory is `install/` inside the repo, so you can inspect the patched QuantLib sources at `build\QuantLib-\` after the build. + With custom versions and install location: ```powershell diff --git a/scripts/Build-QuantLibDLL.ps1 b/scripts/Build-QuantLibDLL.ps1 index 52bf969..bbd8390 100644 --- a/scripts/Build-QuantLibDLL.ps1 +++ b/scripts/Build-QuantLibDLL.ps1 @@ -23,9 +23,11 @@ .PARAMETER InstallDir Where to install QuantLib (cmake --install prefix). + Default: install/ in the repository root. .PARAMETER TempDir - Temporary directory for source downloads and build artifacts. + Working directory for source downloads and build artifacts. + Default: build/ in the repository root so you can inspect patched sources. .PARAMETER Jobs Number of parallel build jobs. 0 = auto-detect (default). @@ -50,8 +52,8 @@ param( [string]$QuantLibVersion = "1.41", [string]$BoostVersion = "1.87.0", - [string]$InstallDir = "C:\quantlib-build\install", - [string]$TempDir = "$env:TEMP\quantlib-dll-build", + [string]$InstallDir = (Join-Path (Split-Path $PSScriptRoot) "install"), + [string]$TempDir = (Join-Path (Split-Path $PSScriptRoot) "build"), [int]$Jobs = 0, [switch]$BuildTests, [switch]$PackageZip,