remove unset CFLAGS hack and add CMAKE_BUILD_TYPE=Release

the missing controller thing was fixed in 30f5b7bb85
This commit is contained in:
Christoph Haag 2022-02-03 11:29:23 +01:00
parent 4862c89b2b
commit df8f9ea998

View file

@ -1,6 +1,6 @@
basename=libsurvive
pkgname=$basename-git
pkgver=2023.feca145
pkgver=2109.30f5b7b
pkgrel=1
pkgdesc="Open-Source tool for working with lighthouse-based tracking data, including support for the HTC Vive, Vive Pro and Valve Index."
arch=(x86_64 i686)
@ -31,9 +31,6 @@ prepare() {
}
build() {
# HACK: possible issue with -O flags and second index controller not being detected, seems to be better with only survive's own cflags
unset CFLAGS CXXFLAG
cd $basename
rm -rf build
@ -43,7 +40,7 @@ build() {
# This will probably require slightly more cpu power than a tuned blas implementation.
# If running on a weak CPU, consider installing a blas implementation and using -DUSE_EIGEN=OFF.
cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DUSE_EIGEN=ON
cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DUSE_EIGEN=ON -DCMAKE_BUILD_TYPE=Release
ninja -C build
}