MantisBT - CMake
View Issue Details
0014327CMakeCMakepublic2013-07-31 14:322016-06-10 14:31
Ryan H. Kawicki 
Kitware Robot 
normalfeaturealways
closedmoved 
WindowsWindows 76.1.7601
CMake 2.8.11.1 
 
0014327: CMAKE_<CONFIG>_POSTFIX For Executables
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.
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
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.
No tags attached.
Issue History
2013-07-31 14:32Ryan H. KawickiNew Issue
2013-07-31 14:38Brad KingNote Added: 0033639
2013-07-31 14:38Brad KingStatusnew => backlog
2016-06-10 14:29Kitware RobotNote Added: 0042334
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033639)
Brad King   
2013-07-31 14:38   
There is a TODO comment in the source for this:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmTarget.cxx;hb=v2.8.11.2#l1527 [^]
(0042334)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.