• Roman Donchenko's avatar
    Fixed CMake warnings/bugs caused by #1670 and #1714 · 104b14e0
    Roman Donchenko authored
    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.
    104b14e0
OpenCVDetectCUDA.cmake 7.21 KB