[CMake] ADA language

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jul 18 09:48:52 EDT 2007


On Wednesday 18 July 2007 08:43, Camek, Alexander wrote:
> Hi,
>
> > > When i do an include of both modules to my main CMakeLists.txt the
> > > compiler is found and all configured. But during build time
> > > the tags <CMAKE_ADA_COMPILER> can not be unbind.
> > >
> > > Any hints?
> >
> > I am not sure what issue you are referring to here, but I
> > encourage you to try the above Ada-related files to see
> > whether they have the same issue.
>
> There I got the same problematic.
> If i don't inlude in the main cmakelist.txt the
> CMakeDetermineAdaCompiler.cmake, Test and Information files, i get an
> internal error. If i include them all is done well during configure time.
> But when I want to build the whole I get following error:
>
> Linking ADA executable foo.exe
> "C:\Program Files\Cmake 2.4\bin\cmake.exe" -P
> CMakeFiles\foo.dir\cmake_clean_targets.cmake C:/MinGW/bin/gnatmake.exe  
> CMAKE_ADA_LINK_FLAGS foo.adb -cargs  -largs -lmingw32 Gnatmake:
> "cmake_ada_link_flags" not found

I think you have to take care that the cases match. If the language is "Ada", 
the variable should CMAKE_Ada_LINK_FLAGS etc., for all variables and 
filenames.

Bye
Alex


More information about the CMake mailing list