MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013281 | CMake | CMake | public | 2012-06-08 07:39 | 2013-01-09 10:55 |
| Reporter | renzodenardi | ||||
| Assigned To | Rolf Eike Beer | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Ubuntu 10.0.4 | OS | GNU/Linux | OS Version | 2.6.32-21-generi |
| Product Version | CMake-2-8 | ||||
| Target Version | CMake 2.8.9 | Fixed in Version | CMake 2.8.9 | ||
| Summary | 0013281: the module UseJava reports a warning when find_jar is used with a list of NAMES | ||||
| Description | when the command find_jar is used with multiple jar names e.g. find_jar(PROTO_JAVA NAMES protobuf protobuf-java) cmake reports a warning: CMake Warning at cmake/Modules/UseJava.cmake:523 (if): given arguments: "protobuf" "protobuf-java" "STREQUAL" "" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:75 (find_jar) | ||||
| Steps To Reproduce | use the following as a CMakeLists.txt PROJECT(TEST) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) set(PACKAGE_NAME "test") FIND_PACKAGE(Java) INCLUDE(UseJava) find_jar(PROTO_JAVA NAMES a_name another_name) | ||||
| Additional Information | as far as I understand this is due to the fact that the variable _jar_names in the function find_jar is actually a list, therefore the correct way of checking if it is empty is to test its length. A patch is attached. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/4349/UseJava.cmake.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-06-08 07:39 | renzodenardi | New Issue | |||
| 2012-06-08 07:39 | renzodenardi | File Added: UseJava.cmake.patch | |||
| 2012-06-08 08:06 | David Cole | Note Added: 0029646 | |||
| 2012-06-08 11:36 | Rolf Eike Beer | Note Added: 0029648 | |||
| 2012-06-08 11:36 | Rolf Eike Beer | Assigned To | => Rolf Eike Beer | ||
| 2012-06-08 11:36 | Rolf Eike Beer | Status | new => resolved | ||
| 2012-06-08 11:36 | Rolf Eike Beer | Resolution | open => fixed | ||
| 2012-06-08 11:36 | Rolf Eike Beer | Fixed in Version | => CMake 2.8.9 | ||
| 2012-08-09 19:37 | David Cole | Target Version | => CMake 2.8.9 | ||
| 2013-01-09 10:55 | Robert Maynard | Note Added: 0032030 | |||
| 2013-01-09 10:55 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||