View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003578CMakeCMakepublic2006-08-03 08:232016-06-10 14:30
ReporterRichard 
Assigned ToBill Hoffman 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003578: javac not using full path for -d option
DescriptionWhen compiling java files, the javac command is run from the project root directory. This is ok, but the -d option that is passed is not the full path, it is relative to the directory that the java file is in.

Either need fully qualified path in the -d option or need javac command run from each source directory instead of project root directory.



Example to duplicate error
in CMake/Tests/Java
mkdir src
mv A.java ./src/.
mv HelloWorld.java ./src/.
cp CMakeLists.txt ./src/.

edit CMakeLists.txt in /Java as such:

PROJECT(hello Java)
SET(CMAKE_VERBOSE_MAKEFILE 1)

ADD_SUBDIRECTORY(src)

# INCLUDE_DIRECTORIES(${hello_SOURCE_DIR}
# ${hello_BINARY_DIR} )
# ADD_LIBRARY(hello A.java HelloWorld.java)

edit CMakeLists.txt in /Java/src as such:

  INCLUDE_DIRECTORIES(${hello_SOURCE_DIR}
    ${hello_BINARY_DIR} )
  ADD_LIBRARY(hello A.java HelloWorld.java)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0041315)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-06-10 14:27 Kitware Robot Note Added: 0041315
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team