[cmake-developers] [CMake 0014994]: Add an option to change the object file name

Mantis Bug Tracker mantis at public.kitware.com
Thu Jun 26 09:00:12 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14994 
====================================================================== 
Reported By:                Emmanuel Blot
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14994
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-06-26 15:00 CEST
Last Modified:              2014-06-26 15:00 CEST
====================================================================== 
Summary:                    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.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-06-26 15:00 Emmanuel Blot  New Issue                                    
======================================================================



More information about the cmake-developers mailing list