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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
