[CMake] Support for Custom LANG in CMAKE (CUDA and general case)
Bill Hoffman
bill.hoffman at kitware.com
Tue Jun 7 15:12:35 EDT 2011
On 6/7/2011 2:50 PM, t m 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.
>
> BTW. Many thanks to Peter Colberg who provide this extension.
>
> 2) The second question is related to the C/CXX dependency
> scanner/generator. Would it be possible to derived dependency
> scanner/generator from pre-defined set of languages (e.g. C/CXX). So
> for example CUDA lang can derived dependency scanner from the CXX.
> This will avoid situation in which we will need to patch the sources
> of cmake itself, whenver we would like to provide support for some
> custom LANG which is actually derived directly from C/CXX. I think
> this topic is quite general.
>
I think the big problem is that this will only work correctly in
makefile based systems. So, VS and Xcode will not work with this
version of the Cuda stuff.
-Bill
More information about the CMake
mailing list