Unable to cross compile OpenCV, find_package(CUDA) failing

I tried the fix in this post and it worked.

I basically added set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") to the root OpenCV CMakeLists.txt.