diff options
Diffstat (limited to 'GUI/Libraries')
| -rw-r--r-- | GUI/Libraries/fetch.ps1 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/GUI/Libraries/fetch.ps1 b/GUI/Libraries/fetch.ps1 index 550dfa5..1495cc9 100644 --- a/GUI/Libraries/fetch.ps1 +++ b/GUI/Libraries/fetch.ps1 @@ -1,7 +1,11 @@ param( - [switch]$overwrite = $false + [switch]$overwrite = $False, + [string]$release = "Release" ) +echo "Overwrite: $overwrite" +echo "Release: $release" + Set-PSDebug -trace 0 $WX_3_2_1_URL = "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.zip" @@ -87,12 +91,12 @@ if (-Not (Test-Path oatpp)) { mkdir build pushd build > $null cmake.exe .. ` - -DCMAKE_BUILD_TYPE=Release ` + -DCMAKE_BUILD_TYPE=$release ` -DBUILD_SHARED_LIBS=OFF ` -DOATPP_MSVC_LINK_STATIC_RUNTIME=ON ` -DOATPP_BUILD_TESTS=OFF - cmake.exe --build . -j $NPROC --config Release - cp src/Release/oatpp.lib ../../../../GUI/GUI/oatpp/ + cmake.exe --build . -j $NPROC --config $release + cp src/$release/oatpp.lib ../../../../GUI/GUI/oatpp/ cp -Recurse ../src/oatpp/* ../../../../GUI/GUI/oatpp/ popd > $null popd > $null |
