MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012880 | CMake | Modules | public | 2012-01-17 21:51 | 2016-06-10 14:31 |
Reporter | Dan Kegel | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Linux | OS | Ubuntu | OS Version | 11.10 |
Product Version | CMake 2.8.7 | ||||
Target Version | Fixed in Version | ||||
Summary | 0012880: find_package(JNI) can't find ubuntu's jdk | ||||
Description | FindJNI.cmake is very fragile, it uses a hardcoded list of known absolute paths of installed JDKs. This list needs updating to handle Ubuntu 11.10 and 12.04. Well, really, it has two hardcoded lists, one for libs and one for include files. This makes it even more fragile, since include files and libs could get out of sync, I think. Here's a quick patch that adds just adds in the particular paths used by Ubuntu 11.10 and 12.04. Tested on all five jdks, both 32 and 64 bits (with the script http://code.google.com/p/winezeug/source/browse/trunk/cmake_examples/ex11/test.sh [^] ). Because the paths vary by architecture, I had to expand variables in the include list, as was already done for the libs list. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/4195/jni.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-01-17 21:51 | Dan Kegel | New Issue | |||
2012-01-17 21:51 | Dan Kegel | File Added: jni.patch | |||
2012-06-28 09:17 | Manuel GRIZONNET | Note Added: 0029858 | |||
2012-08-11 21:42 | David Cole | Status | new => backlog | ||
2012-08-11 21:42 | David Cole | Note Added: 0030451 | |||
2012-09-11 08:13 | Manuel GRIZONNET | Note Edited: 0029858 | bug_revision_view_page.php?bugnote_id=29858#r826 | ||
2016-06-10 14:28 | Kitware Robot | Note Added: 0041966 | |||
2016-06-10 14:28 | Kitware Robot | Status | backlog => 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 | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|