[CMake] When is <LINK_LIBRARIES> available

Alexander Neundorf a.neundorf-work at gmx.net
Thu Feb 17 14:00:22 EST 2011


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 ?
http://public.kitware.com/pipermail/cmake-developers/2011-February/001195.html
Maybe/probably that works better for Java.

Alex


More information about the CMake mailing list