diff options
author | bartus | 2022-08-07 00:58:48 +0200 |
---|---|---|
committer | bartus | 2022-08-07 01:03:39 +0200 |
commit | 79aefcadcff405142cae8f7d04193cdb3b7e2a1f (patch) | |
tree | 2f6ab753330f0103ea0daed5c7cdaf02bad9ccba | |
parent | d20137326841b0d6bf6d36739bda3eeb6ba0963a (diff) | |
download | aur-79aefcadcff405142cae8f7d04193cdb3b7e2a1f.tar.gz |
Expose CMAKE_FLAGS as env var
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ [[ -v CUDA_ARCH ]] && _cuda_arch="-DALICEVISION_CUDA_CC_LIST=${CUDA_ARCH}" +# Use CMAKE_FLAGS=xxx:yyy:zzz to define extra CMake flags +[[ -v CMAKE_FLAGS ]] && mapfile -t -d: _CMAKE_FLAGS < <(echo -n "$CMAKE_FLAGS") + + ((DISABLE_CUDA)) && eval DISABLE_{CCTAG,POPSIFT,UTE}=1 # Disable other components that requires cuda ((DISABLE_OPENCV)) && DISABLE_CCTAG=1 # CCTag requires OpenCV ((DISABLE_CUDA)) && _use_cuda=OFF || _use_cuda=ON # Alow user to build without cuda |