View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014763CMakeCMakepublic2014-02-18 09:582014-10-06 10:32
ReporterBrad King 
Assigned ToBrad King 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0014763: Add target properties to specify MS compiler PDB files
DescriptionAs reported in issue 0014062 and documented in more detail in 0014600, compiler PDB files are different from linker PDB files. The issues were resolved by removing the influence of PDB_NAME and PDB_OUTPUT_DIRECTORY target properties on the /Fd flag of "cl" so that we do not specify the same file as both the compiler and linker program databases.

However, for static libraries there is no linker program database so the compiler program database becomes more important. We need new target properties to control the compiler program database location:

 COMPILE_PDB_NAME[_<CONFIG>]
 COMPILE_PDB_OUTPUT_DIRECTORY[_<CONFIG>]
TagsNo tags attached.
Attached Files

 Relationships
related to 0014062closedBrad King Setting Compiler and Linker PDB to the same path in Visual Studio is unsupported. 
related to 0014600closedBrad King Document PDB behavior w.r.t. static libraries 
related to 0011899closedBrad King Put compiler's program database files into intermediate directory rather than output one for VS 2005 
related to 0014577closedBrad King Need to map /Fd to ProgramDataBaseFileName in VS 7,8,9 

  Notes
(0035139)
yodan (reporter)
2014-02-18 10:15

I believe COMPILE_PDB_NAME should also vary by configuration - e.g. libsomething3.lib, libsomething3.pdb in Release vs. libsomething3d.lib, libsomething3d.pdb in Debug.
(0035140)
Brad King (manager)
2014-02-18 10:19

Re 0014763:0035139: Yes, thanks. PDB_NAME_<CONFIG> already exists for linker program database files. I updated the description to add COMPILE_PDB_NAME_<CONFIG>.
(0035208)
Brad King (manager)
2014-02-26 09:43

Implemented:

 MSVC: Add properties to configure compiler PDB files
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0ea3aee8 [^]
(0036916)
Robert Maynard (manager)
2014-10-06 10:32

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-02-18 09:58 Brad King New Issue
2014-02-18 09:58 Brad King Status new => assigned
2014-02-18 09:58 Brad King Assigned To => Brad King
2014-02-18 09:58 Brad King Relationship added related to 0014062
2014-02-18 09:59 Brad King Relationship added related to 0014600
2014-02-18 09:59 Brad King Relationship added related to 0011899
2014-02-18 09:59 Brad King Relationship added related to 0014577
2014-02-18 10:15 yodan Note Added: 0035139
2014-02-18 10:18 Brad King Description Updated
2014-02-18 10:19 Brad King Note Added: 0035140
2014-02-26 09:43 Brad King Note Added: 0035208
2014-02-26 09:43 Brad King Status assigned => resolved
2014-02-26 09:43 Brad King Resolution open => fixed
2014-02-26 09:43 Brad King Fixed in Version => CMake 3.1
2014-10-06 10:32 Robert Maynard Note Added: 0036916
2014-10-06 10:32 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team