summaryrefslogtreecommitdiffstats
path: root/GUI/Libraries/fetch.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'GUI/Libraries/fetch.ps1')
-rw-r--r--GUI/Libraries/fetch.ps18
1 files changed, 7 insertions, 1 deletions
diff --git a/GUI/Libraries/fetch.ps1 b/GUI/Libraries/fetch.ps1
index 218d48b..550dfa5 100644
--- a/GUI/Libraries/fetch.ps1
+++ b/GUI/Libraries/fetch.ps1
@@ -86,8 +86,14 @@ if (-Not (Test-Path oatpp)) {
pushd $OATPP_DIR > $null
mkdir build
pushd build > $null
- cmake.exe .. -DCMAKE_BUILD_TYPE=Release -DOATPP_BUILD_TESTS=OFF
+ cmake.exe .. `
+ -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/
+ cp -Recurse ../src/oatpp/* ../../../../GUI/GUI/oatpp/
popd > $null
popd > $null
}