[CMake] When is <LINK_LIBRARIES> available

Andreas Pakulat apaku at gmx.de
Thu Feb 17 14:54:54 EST 2011


On 17.02.11 20:00:22, Alexander Neundorf wrote:
> On Wednesday 16 February 2011, Andreas Pakulat wrote:
> > Hi,
> >
> > due to the problems with include_directories (not available as
> > target or source-property) screwing up building java and c++ code in the
> > same subdir, I've tried to adjust the java-compiler support to instead
> > consider .jar files as link-libraries. Unfortunately it seems that during
> > the object-compilation phase the special variable <LINK_LIBRARIES> is not
> > available when setting up the rules in the CMakeXXXInformation.cmake file.
> >
> > Is that correct? Is there a feature wish to change this already open or
> > is this something that not going to be done anyway and I should simply drop
> > the idea of using cmake's compiler-feature for doing java-stuff?
> 
> Maybe.
> 
> Have you seen this ?

Yes, even flagged it in mutt :) I just hoped there to be a way to not go
through custom-command and loose all the compiler-stuff that cmake
supplies.

Andreas

-- 
Your present plans will be successful.


More information about the CMake mailing list