[CMake] Support for Custom LANG in CMAKE (CUDA and general case)

James Bigler jamesbigler at gmail.com
Sun Jun 12 16:33:56 EDT 2011


On Tue, Jun 7, 2011 at 12:50 PM, t m <cmake at majchrowski.co.uk> wrote:

> Hi
>
> I've two topics related to the support for custom lang in cmake. I
> hope you can help me.
>
> 1) Does anyone knows plan about merge the following feature related to
> the CUDA: http://public.kitware.com/Bug/view.php?id=11887
>
> I'm in the process of integrating the CUDA Toolkit into our build
> environment and I would need to make a decision which way to go very
> soon. I must say that I like much more idea presented in this ticket
> instead of using wrapping macros (aka FindCUDA.cmake).I think it's
> more elegant and I hope it will be merge to the main stream very soon.
> I just need to know which direction will be choose as I don't wont to
> be far from the main stream.
>
>
Other than the 'more elegant' prospect of being able to just put .cu files
into a target, is there anything else deficient about the current FindCUDA
macros?  All you have to do really is to use cuda_add_executable instead of
add_executable.

I've iterated with Peter many times about his proposed changes, and one of
the issues we were hoping to solve is the ability to target different output
formats.  CUDA supports generation of not only object files, but PTX and
CUBIN files which need to not be treated as an object file.  In addition, it
wasn't clear how this adaptation would behave along side the existing
FindCUDA behavior for which we have to be backward compatible with.

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110612/cfff64a2/attachment.htm>


More information about the CMake mailing list