MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014032 | CMake | Modules | public | 2013-03-20 10:42 | 2016-06-10 14:31 |
Reporter | Pol Monsó Purtí | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Windows | OS | WIndows 7 | OS Version | WIndows 7 |
Product Version | CMake 2.8.10.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014032: Find_Java fails to prioritize JAVA_HOME | ||||
Description | FindJava.cmake chooses the vewest version of Java instead of the one pointed by the environment variable JAVA_HOME. If there are several versions and the user targets a particular one, there's no way to tell cmake. | ||||
Steps To Reproduce | 1. install several versions of jdk. 2. set JAVA_HOME to the oldest one 3. Run a cmake with Find(Java) and check the output | ||||
Additional Information | I could fix this by changing FindJava.cmake from set(_JAVA_HINTS "[HKEY...]/bin" [...] $ENV{JAVA_HOME}/bin ) to set(_JAVA_HINTS $ENV{JAVA_HOME}/bin "[HKEY...]/bin" [...] ) | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-03-20 10:42 | Pol Monsó Purtí | New Issue | |||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042254 | |||
2016-06-10 14:28 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|