MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0009840 | CMake | Modules | public | 2009-11-04 09:48 | 2010-05-11 16:53 |
Reporter | Mathieu Malaterre | ||||
Assigned To | Mathieu Malaterre | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | CMake-2-8 | |||
Summary | 0009840: find_package(Java 1.6 COMPONENTS Runtime) | ||||
Description | Please implement: find_package(Java 1.6 COMPONENTS Runtime) Right now the FindJava fails if javac or jar is not found, which is the case for JRE installation (instead of JDK). It would be cool to handle both case, thanks to COMP interface. | ||||
Steps To Reproduce | |||||
Additional Information | It works now, thanks. The Java is c:/windows/system32/java.exe from 64-bit Vista. I tried a test project like this: find_package(Java 1.7) # missing version foreach(v Java_VERSION Java_FOUND) message("${v}=[${${v}}]") endforeach() and got this: -- Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE _java_version_acceptable) Java_VERSION=[1.6.0] Java_FOUND=[] Then I tried find_package(Java 1.6) # available version foreach(v Java_VERSION Java_FOUND) message("${v}=[${${v}}]") endforeach() and go this: -- Java version 1.6.0 configured successfully! -- Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE) Java_VERSION=[1.6.0] Java_FOUND=[] If in the future you want to try to distinguish between the runtime and development parts of java, perhaps you can use the find_package COMPOENTS feature to allow something like find_package(Java 1.6 COMPONENTS Runtime) or find_package(Java 1.6 COMPONENTS Compiler) to look for different pieces. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-11-04 09:48 | Mathieu Malaterre | New Issue | |||
2009-11-04 09:50 | Mathieu Malaterre | Status | new => assigned | ||
2009-11-04 09:50 | Mathieu Malaterre | Assigned To | => Mathieu Malaterre | ||
2010-05-09 04:52 | Alex Neundorf | Category | CMake => Modules | ||
2010-05-09 05:29 | Mathieu Malaterre | Note Added: 0020682 | |||
2010-05-09 05:29 | Mathieu Malaterre | Note Added: 0020683 | |||
2010-05-11 16:52 | Mathieu Malaterre | Note Added: 0020716 | |||
2010-05-11 16:53 | Mathieu Malaterre | Status | assigned => closed | ||
2010-05-11 16:53 | Mathieu Malaterre | Resolution | open => fixed | ||
2010-05-11 16:53 | Mathieu Malaterre | Fixed in Version | => CMake-2-8 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|