MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0010588 | CMake | CMake | public | 2010-04-21 11:20 | 2016-06-10 14:31 |
Reporter | tisi | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0010588: Customizable <OBJECTS> tag-variable | ||||
Description | The tag-variable <OBJECS> can be used for rule variables, which contains all object files for linking or generating a library. Some Linkers/Libarians need flags before each object files, e.g. libarian -a object1 -a object2 -a object3 etc. (e.g. Softune compiler) or some mor exotic construct with brackets (e.g. Keil compiler) At the moment it is only possible to use such compilers with shell wrapper scripts - but that is not very portable, because on the dependency of the shell. (e.g. windows has batch-interpreter, unix has bash, csh and so on) It would be nice to have some customization feature for the <OBJECTS> tag, like for example: SET(CMAKE_LINK_OBJECTS_PREFIX "-o(") SET(CMAKE_LINK_OBJECTS_CLUE ",") SET(CMAKE_LINK_OBJECTS_FILE_FLAG "-f") SET(CMAKE_LINK_OBJECTS_POSTFIX ")") which will produce: link -o(-f object1,-f object2, -f object3) (and the same for the ar) --- Or another approach for this problem is customizaion by regular expressions (this could be used by all tag variables, and could be less confusing than additional variables): <OBJECTS:REGEX(/ /,)> produces object1,object2,object3 instead of object1 object2 object3 This approach can also reduce the amount of necessary cmake variables e.g. like CMAKE_LINK_LIBRARY_FILE_FLAG: instead of SET(CMAKE_LINK_LIBRARY_FILE_FLAG "-l") someone could use something like <LINK_LIBRARIES:REGEX(/ /-l ):REGEX(/^/-l ))> For this approach more than one regex should be possible and should be handled from left to right. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-04-21 11:20 | tisi | New Issue | |||
2010-04-21 13:37 | Bill Hoffman | Status | new => assigned | ||
2010-04-21 13:37 | Bill Hoffman | Assigned To | => Brad King | ||
2010-04-22 09:39 | Brad King | Note Added: 0020348 | |||
2012-08-13 10:36 | Brad King | Status | assigned => backlog | ||
2012-08-13 10:36 | Brad King | Note Added: 0030486 | |||
2016-06-10 14:27 | Kitware Robot | Note Added: 0041686 | |||
2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|