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.pull/1720/head
parent
8a4f1bbbdf
commit
104b14e0e0
2 changed files with 14 additions and 0 deletions
Loading…
Reference in new issue