Fix errors when building with cuda stubs
authorRob Timpe <rob@xwing.com>
Wed, 21 Oct 2020 22:51:46 +0000 (15:51 -0700)
committerRob Timpe <rob@xwing.com>
Wed, 21 Oct 2020 22:51:46 +0000 (15:51 -0700)
commit22ee5c0c4db9111780c6d34eb2a3c85e0f4046ff
tree507497807efa16696717c0199ff4a35f5817d9c6
parent7f3d8de26f94e119ca792ff2aa3eec02b3ffaa55
Fix errors when building with cuda stubs

Fixes two errors when building with the options WITH_CUDA=ON and BUILD_CUDA_STUBS=ON on a machine without CUDA.

In the cudaarithm module, make sure cuda_runtime.h only gets included when CUDA is installed.

In the stitching module, don't assume that cuda is present just because cudaarithm and cudawarping are present (as is the case when building with the above options).
modules/cudaarithm/src/lut.cpp
modules/stitching/src/blenders.cpp