[cmake-developers] [CMake 0013685]: No way to control object file suffix for Object Libraries

Mantis Bug Tracker mantis at public.kitware.com
Thu Nov 15 10:36:47 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13685 
====================================================================== 
Reported By:                Mike Smith
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13685
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-15 15:36 GMT
Last Modified:              2012-11-15 15:36 GMT
====================================================================== 
Summary:                    No way to control object file suffix for Object
Libraries
Description: 
The suffix used for binary files when they are part of an Object Library seem to
always be .obj on Windows.  I was hoping that the setting for
CMAKE_CXX_OUTPUT_EXTENSION and CMAKE_C_OUTPUT_EXTENSION would be used.  When I
try setting these values to .o it has no effect (see attached files). 
Alternatively it would be very useful to have some mechanism to set the suffix
for these files.

Steps to Reproduce: 
Run the attached files through cmake on Windows
Open the project in Visual Studio
The Object Library has the file main.obj - I want this to be main.o

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-15 15:36 Mike Smith     New Issue                                    
2012-11-15 15:36 Mike Smith     File Added: cmake-test.zip                    
======================================================================




More information about the cmake-developers mailing list