MantisBT - CMake
View Issue Details
0015518CMakeCMakepublic2015-04-17 04:032015-11-02 09:13
Paul "TBBle" Hampson 
Brad King 
normaltextalways
closedfixed 
CMake 3.2.2 
CMake 3.3CMake 3.3 
0015518: PDB_NAME documentation doesn't mention that it uses OUTPUT_NAME if defined
The PDB_NAME documentation has always stated:

This property specifies the base name for the debug symbols file. If not set, the logical target name is used by default.

(since 2.8.10 when it was introduced: http://www.cmake.org/cmake/help/v2.8.10/cmake.html#prop_tgt:PDB_NAME [^] up to 3.2: http://www.cmake.org/cmake/help/v3.2/prop_tgt/PDB_NAME.html [^])

However, examining the original commit (http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3f60dbf1#patch7 [^]) shows that it actually uses cmTarget::GetFullNameInternal, which honours OUTPUT_NAME.

This is also true of the _<CONFIG> variants.

It's correct behaviour, so it's just the documentation that needs updating, hence the given Severity.
* Create a target using OUTPUT_NAME that differs from the logical target name.
* Generate a Visual Studio solution
* Note that the PDB generated is OUTPUT_NAME.pdb, not logicalName.pdb.
The unit tests don't cover this case, but I expect that a unit test setting OUTPUT_NAME and PDB_NAME would trivially demonstrate the actual behaviour.

I assume the text was just copied from the OUTPUT_NAME documentation, which is the only other place that this text appears, and it makes sense there.
No tags attached.
Issue History
2015-04-17 04:03Paul "TBBle" HampsonNew Issue
2015-04-17 11:06Brad KingNote Added: 0038538
2015-04-17 11:06Brad KingAssigned To => Brad King
2015-04-17 11:06Brad KingStatusnew => resolved
2015-04-17 11:06Brad KingResolutionopen => fixed
2015-04-17 11:06Brad KingFixed in Version => CMake 3.3
2015-04-17 11:06Brad KingTarget Version => CMake 3.3
2015-11-02 09:13Robert MaynardNote Added: 0039780
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038538)
Brad King   
2015-04-17 11:06   
Thanks for pointing out this omission! Fixed:

 Help: Clarify PDB_NAME fallback behavior
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=164f1df2 [^]
(0039780)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.