[CMake] CMAKE_Java_LINK_EXECUTABLE

Brad King brad.king at kitware.com
Thu Aug 3 09:51:20 EDT 2006


Richard Fuchs wrote:

> Brad King wrote:
> 
>> Richard Fuchs wrote:
>>  
>>
>>> Spoke to soon, it seems to be a problem with where javac is invoked. 
>>> With the current makefiles that are created, the javac -d option has a
>>> relative path from where the source files are located, but javac is
>>> being invoked from the root project dir.  I was able to modify the
>>> build.make file that is generated to include the full path for the -d
>>> option and things run fine.
>>>
>>> So I either need to get cmake to include the full path in the javac -d
>>> option or get javac to run each subdir.  Any thoughts?
>>>     
>>
>>
>> It looks like Java support is not too well tested.  The Java test in
>> CMake has only a top level directory so this problem does not occur.
>>
>> Please create a bug report here:
>>
>> http://www.cmake.org/Bug
>>
>> Thanks,
>> -Brad
>>
>>   
> 
> A similar problem exists for the -classpath option, it needs to point to 
> the <src>/CMakeFiles/blah.dir and not the src dir.
> 
> Can you point me to where in the cmake source to look to see about 
> fixing this?

Since I have not investigated the problem I cannot tell you exactly 
where to look.  You can get started by looking in 
Source/cmLocalUnixMakefileGenerator3.cxx and cmMakefile*Generator.cxx.

-Brad



More information about the CMake mailing list