MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015528 | CMake | CMake | public | 2015-04-22 09:06 | 2016-06-10 14:31 |
Reporter | marc.chevrier | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.2.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015528: Enhance find_library to specify which library kind we are looking for | ||||
Description | Currently, it is not possible, in an easy way, to specify which kind of library we are looking for when calling find_library. So if we are searching a static library, and a shared library is also available, this is the shared one which will be found. Today, to work-around this problem, the following pattern must be used: set (default_find_library_suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES}) set (CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX}) find_library (...) set (CMAKE_FIND_LIBRARY_SUFFIXES ${default_find_library_suffixes}) which is a bit painful. I suggest to add a new parameter to specify which kind of library we are looking for. For example, parameter TYPE which can have values LINK, STATIC or RUNTIME * LINK: extension .so (Unix) or .lib (Windows) will be used * STATIC: extension .a (Unix) or .lib (Windows) will be used * RUNTIME: extension .so (Unix) or .dll (Windows) will be used. This latest case can be useful to locate shared runtime libraries rather than link ones Whithout this parameter, find_library has same behavior as today. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-04-22 09:06 | marc.chevrier | New Issue | |||
2015-04-22 09:34 | Brad King | Note Added: 0038577 | |||
2015-04-22 10:31 | marc.chevrier | Note Added: 0038580 | |||
2015-04-22 10:41 | Brad King | Note Added: 0038581 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042763 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|