Itseez/opencv — pull request #1720 by SpecLad (2013-10-30 12:22:51+00:00)
Title: Fixed CMake warnings/bugs caused by #1670 and #1714

`include()` doesn't create a variable scope, so the settings of `CMAKE_MODULE_PATH` and `CMAKE_FIND_ROOT_PATH_MODE_*` were polluting everything included after `OpenCVDetectCUDA.cmake`.

Also, `FindCUDA` includes `FindPackageHandleStandardArgs`, which includes `CMakeParseArguments`, which causes warnings related to policy CMP0017. Setting it to `NEW` seems safe enough.