View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014994 | CMake | CMake | public | 2014-06-26 09:00 | 2015-01-05 08:38 | ||||
Reporter | Emmanuel Blot | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | feature | Reproducibility | always | ||||
Status | closed | Resolution | duplicate | ||||||
Platform | OS | OS X 10.9.3 / eCos 3.0 | OS Version | ||||||
Product Version | CMake 3.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014994: Add an option to change the object file name | ||||||||
Description | Currently, it does not seem possible to (re)name an object file which CMake computes from the source file. When building an application with static libraries, from multiple third party libraries, some library use the same name for a source file. For example libcurl and a crypto library (PolarSSL, WolfSSL) use the same filenames for a crypto algorithm. There is no issue at compilation time since each source file is built within its dedicated CMAKE_CURRENT_BINARY_DIR. However it is not possible to combine both object files within the same archive, as both libs end up with the same object file name. It would be very helpful to provide a way to add a prefix to the generated object filenames so that no collision could occur. | ||||||||
Additional Information | I did not find any way to circumvent this limitation, but renaming the source files. This is not really an option as merging upstream updates quickly become a nightmare if the file-to-be-merged has been renamed. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0036263) Brad King (manager) 2014-06-27 09:22 |
Issue 0014874 explains how the archive should be constructed to deal with the duplicate object names. CMake 3.1 will do this. |
(0036264) Brad King (manager) 2014-06-27 09:23 |
It is also possible to change the name of an object file by using a source file with a different name that #include-s the original source file. |
(0037572) Robert Maynard (manager) 2015-01-05 08:38 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-06-26 09:00 | Emmanuel Blot | New Issue | |
2014-06-26 09:16 | Nils Gladitz | Relationship added | duplicate of 0014874 |
2014-06-27 09:22 | Brad King | Note Added: 0036263 | |
2014-06-27 09:22 | Brad King | Status | new => resolved |
2014-06-27 09:22 | Brad King | Resolution | open => duplicate |
2014-06-27 09:23 | Brad King | Note Added: 0036264 | |
2015-01-05 08:38 | Robert Maynard | Note Added: 0037572 | |
2015-01-05 08:38 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |