View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0008396 | CMake | CMake | public | 2009-01-19 02:06 | 2016-06-10 14:30 | ||||
Reporter | Philip Lowman | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0008396: FIND_LIBRARY with version specification | ||||||||
Description | FIND_LIBRARY could use support for searching for filenames with version numbers encoded in them. As more and more CMake find modules seek to implement version checking this is going to become a more important feature. Let's face it, library version encoding into filenames isn't going away anytime soon and defining every possible version that you're looking for in CMake script kinda sucks. Here is an idea on syntax: FIND_LIBRARY(<NAME> VNAMES <regex> | VPATH_SUFFIXES <regex> VERSION_EQUAL | VERSION_GREATER | VERSION_LESS | VERSION_GREATER_OR_EQUAL | VERSION LESS_OR_EQUAL <version> ) Here are a couple of examples: Take the following use cases: libfoo34.a libbar3_5.a /usr/include/foo-1.8/foo.h FIND_LIBRARY(FOO_LIBRARY VNAMES foo([0-9])([0-9]) VERSION_EQUAL 3.4 ) FIND_LIBRARY(BAR_LIBRARY VNAMES bar([0-9]+)_([0-9]+) VERSION_GREATER 3.4 ) FIND_PATH(FOO_INCLUDE_DIR NAMES foo.h VPATH_SUFFIXES foo-([0-9]+)\.([0-9]+) VERSION_GREATER 1.6 ) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||||||||||||
|
Relationships |
Notes | |
(0014762) Philip Lowman (developer) 2009-02-02 22:25 |
I've done some preliminary work on a patch for this without the VNAMES / VPATH_SUFFIXES mumbo jumbo. My thought here was that if VERSION_XXX is specified then if there is a grouping specified ( ) it could automatically be treated as a regular expression. NAMES, PATHS, HINTS, and PATH_SUFFIXES would seem to be logical places to support the feature. I think it would be a lot easier to implement (at least for the first cut), if grouping expressions were limited to one per complete path + one per complete filename. In other words, you couldn't specify a grouping expression in both PATHS and PATH_SUFFIXES or HINTS and PATH_SUFFIXES. I doubt there would be a use case for this either. Also a regular expression where the versions were split by folders would be a bad idea: /usr/local/foo([0-9])/bar([0-9]) Also for VERSION_XXX I'm thinking VERSION_GREQUAL or some other shortened form would be a better call. |
(0023144) James Bigler (developer) 2010-11-10 13:45 |
I added a feature request for REGEXP in the FIND_XXX commands. Since this is being tracked for 2.8.4, I added my bug here. |
(0023819) David Cole (manager) 2010-12-08 15:50 |
Deferred. Discussed at the CMake 2.8.4 bug triage meeting, Dec. 8, 2010. |
(0041494) Kitware Robot (administrator) 2016-06-10 14:27 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-01-19 02:06 | Philip Lowman | New Issue | |
2009-01-19 02:07 | Philip Lowman | Relationship added | related to 0003666 |
2009-02-02 15:06 | Bill Hoffman | Status | new => assigned |
2009-02-02 15:06 | Bill Hoffman | Assigned To | => Bill Hoffman |
2009-02-02 22:25 | Philip Lowman | Note Added: 0014762 | |
2010-11-10 12:50 | David Cole | Target Version | => CMake 2.8.4 |
2010-11-10 13:41 | James Bigler | Relationship added | has duplicate 0010856 |
2010-11-10 13:45 | James Bigler | Note Added: 0023144 | |
2010-11-18 23:08 | Philip Lowman | Relationship added | parent of 0011445 |
2010-12-08 15:50 | David Cole | Note Added: 0023819 | |
2010-12-08 15:50 | David Cole | Target Version | CMake 2.8.4 => |
2016-06-10 14:27 | Kitware Robot | Note Added: 0041494 | |
2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved |
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:30 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |