MantisBT - CMake | ||||||||||||||||||||
View Issue Details | ||||||||||||||||||||
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 ) | |||||||||||||||||||
Steps To Reproduce | ||||||||||||||||||||
Additional Information | ||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||
Relationships |
| |||||||||||||||||||
Attached Files | ||||||||||||||||||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|