I'm new at this so it would be good to have someone familiar with the build system confirm the change.
-DBUILD_CUDA_STUBS=ON