[cmake-developers] [CMake 0014327]: CMAKE_<CONFIG>_POSTFIX For Executables

Mantis Bug Tracker mantis at public.kitware.com
Wed Jul 31 14:32:46 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14327 
====================================================================== 
Reported By:                Ryan H. Kawicki
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14327
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-31 14:32 EDT
Last Modified:              2013-07-31 14:32 EDT
====================================================================== 
Summary:                    CMAKE_<CONFIG>_POSTFIX For Executables
Description: 
According to the documentation, CMAKE_<CONFIG>_POSTFIX does not apply
executables due to legacy reasons.  It would be nice if this also applied to
executables and then use the policy system to enforce OLD or NEW.

Steps to Reproduce: 
SET(CMAKE_DEBUG_POSTFIX "D"
    CACHE STRING
    "Adds a debug postfix symbol, usually \"D\" on Windows."
    FORCE)

# the above does not apply to executables

SET_TARGET_PROPERTIES(${TargetProject}
                      PROPERTIES
                      DEBUG_POSTFIX "D")

# the above applies the postfix value for executables

Additional Information: 
Something like:

CMAKE_POLICY(SET CMP0021 NEW)

would enforce the new standard of allowing CMAKE_<CONFIG>_POSTFIX to be applied
to that configurations executables too.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-31 14:32 Ryan H. KawickiNew Issue                                    
======================================================================




More information about the cmake-developers mailing list