diff options
author | bartus | 2020-06-18 18:25:20 +0200 |
---|---|---|
committer | bartus | 2020-06-18 18:25:20 +0200 |
commit | 86516e9b4b88d2b086c81d053aa2dad62401e186 (patch) | |
tree | a82f21cf7ae3f8424a51a47fbe3153db87c9b096 | |
parent | 7d1e296cca5ef42454176ff4d5f2d8f2593bbed7 (diff) | |
download | aur-86516e9b4b88d2b086c81d053aa2dad62401e186.tar.gz |
Add CUDA_ARCH control variable.
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,7 +1,10 @@ #!/hint/bash # Maintainer : bartus <arch-user-repoᘓbartus.33mail.com> # -> disable check() until #63 is fixed -DISABLE_CHECK=1 + +#Configuration variables +# CUDA_ARCH : sm_50, sm_50 ... +DISABLE_CHECK=${DISABLE_CHECK:-1} _name=popsift pkgname=(${_name} ${_name}-libs) @@ -25,6 +28,7 @@ _CMAKE_FLAGS=( -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ) build() { cd ${srcdir} + [[ -v CUDA_ARCH ]] && _CMAKE_FLAGS+=( -DPopSift_CUDA_CC_LIST="$CUDA_ARCH" ) msg2 "Build static ${_name} library" mkdir -p build_static && pushd build_static |