Using OpenCV with Cuda support for Jetson Development Kit

Hi,

I am trying to build OpenCV with Cuda support. I am able to build the code using cmake but in the configuration i see that USE_CUDA=NO eventhough i have enabled the flag through command line. When i port the code on the board it says that Libraries were build without CUDA support. Let me know how to solve this problem.