MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013377 | CMake | CMake | public | 2012-07-05 10:10 | 2012-12-03 07:46 |
Reporter | Nodrev | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | MSVC | OS | MS Windows | OS Version | 7 |
Product Version | CMake 2.8.8 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013377: SET_TARGET_PROPERTIES: TARGET_PDB overriden by OUTPUT_NAME | ||||
Description | when using both OUTPUT_NAME and TARGET_PDB properties, the pdb generated use output_name to generate it's name, ignoring target_pdb that was explicitly specified. | ||||
Steps To Reproduce | I have two projects in my msvc solution that i generate using cmake, an exe and a dll, both are named with the same name ("myrealname" in the following example). So, as every cmake's target must be unique, i set a "myrealname" target for the exe and "mydummytarget" for the dll. I use "SET_TARGET_PROPERTIES" to change the dummy target output filename: >>> set_target_properties(mydummytarget PROPERTIES OUTPUT_NAME myrealname) <<< The problem with this setup, one of the too target pdb will be overwrited (as they now both named "myrealname.pdb"). So I try to replace with this line: >>> set_target_properties(mydummytarget PROPERTIES OUTPUT_NAME myrealname TARGET_PDB mydummytarget) <<< But the "TARGET_PDB" command is ignored, the pdb that is generated is named "myrealname.pdb" instead of "mydummytarget.pdb" (it seems that output_name is used to generate the name of the pdb even when it's explicitly defined by the user using target_pdb"). Maybe the problem is from cmTarget.cxx file, but i'm not an cmake source expert, so i'm not sure about that. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-07-05 10:10 | Nodrev | New Issue | |||
2012-07-05 16:05 | Brad King | Note Added: 0029921 | |||
2012-07-05 16:11 | Nodrev | Note Added: 0029922 | |||
2012-07-09 08:59 | Brad King | Note Added: 0029998 | |||
2012-07-09 08:59 | Brad King | Status | new => resolved | ||
2012-07-09 08:59 | Brad King | Resolution | open => no change required | ||
2012-12-03 07:46 | David Cole | Note Added: 0031811 | |||
2012-12-03 07:46 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|