[cmake-developers] cmake --help-policy CMP0057 MAIN_DEPENDENCY

James Bigler jamesbigler at gmail.com
Fri Apr 24 17:43:39 EDT 2015


This new policy breaks a long standing feature of FindCUDA.

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.

I don't want to turn off the MAIN_DEPENDENCY feature, so should I push/pop
the policy in FindCUDA.cmake?

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150424/62a6c0a9/attachment.html>


More information about the cmake-developers mailing list