aboutsummaryrefslogtreecommitdiff
path: root/extra/libgit2/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libgit2/build')
-rwxr-xr-xextra/libgit2/build9
1 files changed, 7 insertions, 2 deletions
diff --git a/extra/libgit2/build b/extra/libgit2/build
index d172c0aa..acd4c60d 100755
--- a/extra/libgit2/build
+++ b/extra/libgit2/build
@@ -1,7 +1,12 @@
#!/bin/sh -e
+export DESTDIR="$1"
mkdir build && cd build
-cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
+
cmake --build .
-DESTDIR="$1" cmake --install .
+cmake --install .