MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0003578 | CMake | CMake | public | 2006-08-03 08:23 | 2016-06-10 14:30 |
| Reporter | Richard | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0003578: javac not using full path for -d option | ||||
| Description | When 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) | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||