diff options
author | Sameer Puri | 2022-01-14 13:25:56 -0500 |
---|---|---|
committer | Sameer Puri | 2022-01-14 13:25:56 -0500 |
commit | 0ef1baa82d546b7bfd271a99f45643aad9dfc319 (patch) | |
tree | e4ede3d4936f176b33d2cebec5ae2004f23ec735 | |
parent | b7132bd9da363a81bc8a13e832709639e77a136a (diff) | |
download | aur-0ef1baa82d546b7bfd271a99f45643aad9dfc319.tar.gz |
use cmake instead of makefile (legacy)
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -15,10 +15,12 @@ b2sums=('acfdc58991dcfc476ea7a448788a2a32250b0e8dcc9017e082746f12a06b203859b8d2f build() { cd "${srcdir}/or-tools-${pkgver}" - make third_party - pacman -Qi cplex &> /dev/null && echo 'UNIX_CPLEX_DIR = /usr/lib' >> Makefile.local - make python - make pypi_archive + if [ `pacman -Qi cpelx &>/dev/null` ]; then + cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON -DUSE_CPLEX:BOOL=ON -DCPLEX_ROOT=/usr/lib/cplex + else + cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON + fi + cmake --build build } package() { |