View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012495 | CMake | CMake | public | 2011-10-06 00:33 | 2012-03-06 08:37 | ||||
Reporter | Scott K Logan | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | x86_64 | OS | Fedora | OS Version | 15 | ||||
Product Version | CMake 2.8.4 | ||||||||
Target Version | Fixed in Version | CMake 2.8.6 | |||||||
Summary | 0012495: FIND_PACKAGE does not search lib64 for VTK | ||||||||
Description | When suing FindVTK.cmake, the FIND_PACKAGE command does not search /usr/lib64 for vtk-5.6, thus resulting in an error. | ||||||||
Steps To Reproduce | 1. create a cmake file containing only "find_package (VTK REQUIRED)" 2. run cmake -P testfile.cmake | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0027553) Brad King (manager) 2011-10-07 11:31 |
In "cmake -P" scripting mode CMake is not generating a build system. There is no target toolchain and therefore no target architecture. This is not expected to work. Does it work in a normal CMakeLists.txt during configuration of a real project? |
(0027554) Scott K Logan (reporter) 2011-10-07 12:04 |
I'm not sure. I found this bug compiling a ROS [0] package for Point Clouds [1]. Inside the makefile for this "stack," cmake -P is executed on a file with these contents: find_package (VTK REQUIRED) execute_process (COMMAND echo ${VTK_INCLUDE_DIRS} COMMAND sed "s/ / -I/g") EOF If I understand you correctly, the creator is misusing "cmake -P" and therefore this is not a bug in cmake? If so, how can similar functionality be achieved? It looks like the developers primarily use Debian (Ubuntu) so this issue never arose for them. Also, just to clarify, it looks like I failed in spelling "using" in this bug's description. Thank you for a quick response. [0] http://www.ros.org/ [^] [1] http://www.ros.org/wiki/perception_pcl [^] |
(0027556) Brad King (manager) 2011-10-07 12:36 |
> If I understand you correctly, the creator is misusing "cmake -P" and therefore this is not a bug in cmake? Correct. It may be possible to make "cmake -P" work for this with enough custom options to find_package but it would be ad-hoc. As of CMake 2.8.5 the only way to achieve this functionality is to generate a CMakeLists.txt file and actually try to configure a project. CMake 2.8.6 introduced a new "--find-package" option that is meant specifically for this use case. You or the ROS folks can contact our mailing list at http://www.cmake.org/mailman/listinfo/cmake [^] to ask for help using it. |
(0027557) Brad King (manager) 2011-10-07 12:37 |
Resolving as no change required because this is not actually a CMake bug. Please contact the previously linked mailing list for further help. |
(0028822) David Cole (manager) 2012-03-06 08:37 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-10-06 00:33 | Scott K Logan | New Issue | |
2011-10-07 11:31 | Brad King | Note Added: 0027553 | |
2011-10-07 11:31 | Brad King | Assigned To | => Brad King |
2011-10-07 11:31 | Brad King | Status | new => assigned |
2011-10-07 12:04 | Scott K Logan | Note Added: 0027554 | |
2011-10-07 12:36 | Brad King | Note Added: 0027556 | |
2011-10-07 12:37 | Brad King | Note Added: 0027557 | |
2011-10-07 12:37 | Brad King | Status | assigned => resolved |
2011-10-07 12:37 | Brad King | Fixed in Version | => CMake 2.8.6 |
2011-10-07 12:37 | Brad King | Resolution | open => no change required |
2012-03-06 08:37 | David Cole | Note Added: 0028822 | |
2012-03-06 08:37 | David Cole | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |