<div dir="ltr">This new policy breaks a long standing feature of FindCUDA.<div><br></div><div>Basically I could add the MAIN_DEPENDENCY to all CUDA files built.  If the same CUDA file was used in multiple custom commands it would attach the build rule to the first command, and leave the remaining ones as "phantom" .rule files in the project.</div><div><br></div><div>I don't want to turn off the MAIN_DEPENDENCY feature, so should I push/pop the policy in FindCUDA.cmake?</div><div><br></div><div>James</div></div>