[CMake] ADA language

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jul 18 11:07:22 EDT 2007


On Wednesday 18 July 2007 11:01, Camek, Alexander wrote:
> Hi Alex,
>
> > > Is it possible that cmake is ignoring modules and their
> >
> > settings which
> >
> > > are not in the normal module tree of cmake? Because i have done a
> > > SET(CMAKE_MODULE_PATH ToMyModules).
> >
> > It should work, but there might be some places where
> > CMAKE_ROOT is hardcoded, there CMAKE_MODULE_PATH doesn't help.
> > Add some MESSAGE(STATUS "this is file ....") debug messages
> > to the files which should be loaded so you see what's going on.
>
> The files semed to be loaded, because i get a configured
> CMakeAdaCompiler.cmake and also the test are running. But when i want to
> build my executables or libraries it seems that nothing of the tags, e.g.
> <CMAKE_Ada_COMPILER> are known anymore.
>
> By the way is it normal that i have to set SET_TARGET_PROPERTIES() value
> LINKER_LANGUAGE to Ada, because if i don't do that i always get an error
> that the linker can not be choosen.

With cmake 2.4.x, yes.
With cmake cvs HEAD you can set CMAKE_Ada_LINKER_PREFERENCE to a numerical 
value, the language with the highest value is chosen (which can be overridden 
using SET_TARGET_PROPERTIES(... LINKER_LANGUAGE <lang>) )

Alex


More information about the CMake mailing list