summaryrefslogtreecommitdiff
path: root/flatbuffers/Pkgfile
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-08 11:02:14 +0000
committerTim Biermann <tbier@posteo.de>2020-11-08 13:41:14 +0000
commitf1f07a191bce65bdee6e0974320cf2f0e882984f (patch)
tree7d3467e15c24ab85234f8987b0441bf822e36e5d /flatbuffers/Pkgfile
parent498d216b0c787408243aedee02eab05b747c83f6 (diff)
downloadcontrib-f1f07a191bce65bdee6e0974320cf2f0e882984f.tar.gz
contrib-f1f07a191bce65bdee6e0974320cf2f0e882984f.tar.xz
flatbuffers: updated cmake syntax
Diffstat (limited to 'flatbuffers/Pkgfile')
-rw-r--r--flatbuffers/Pkgfile16
1 files changed, 10 insertions, 6 deletions
diff --git a/flatbuffers/Pkgfile b/flatbuffers/Pkgfile
index 6185a2d20..63e8e86ef 100644
--- a/flatbuffers/Pkgfile
+++ b/flatbuffers/Pkgfile
@@ -9,12 +9,16 @@ release=1
source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz)
build() {
- [[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS_OPTIONS=' -GNinja'
- cmake -S$name-$version -Bbuild $PKGMK_FLATBUFFERS_OPTIONS \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DFLATBUFFERS_BUILD_FLATLIB=OFF \
- -DFLATBUFFERS_BUILD_SHAREDLIB=ON
+ [[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS+=' -G Ninja'
+ cmake -S $name-$version -B build $PKGMK_FLATBUFFERS \
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D CMAKE_INSTALL_LIBDIR=lib \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
+ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
+ -D FLATBUFFERS_BUILD_FLATLIB=OFF \
+ -D FLATBUFFERS_BUILD_SHAREDLIB=ON \
+ -Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}

Generated by cgit