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

t m cmake at majchrowski.co.uk
Tue Jun 7 14:50:41 EDT 2011


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.

regards, T. Majchrowski.


More information about the CMake mailing list