summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2012-09-25 01:30:42 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-25 19:23:35 (GMT)
commit3f60dbf1484575f4c28a15c89e1af071648c8f2d (patch)
tree2ff89c5574c9515a4f1a61d210dfbcc7b020af56 /Source/cmTarget.h
parentd550801a3df96b991caf918435025aa233130bb4 (diff)
downloadCMake-3f60dbf1484575f4c28a15c89e1af071648c8f2d.zip
CMake-3f60dbf1484575f4c28a15c89e1af071648c8f2d.tar.gz
CMake-3f60dbf1484575f4c28a15c89e1af071648c8f2d.tar.bz2
Add PDB_OUTPUT_DIRECTORY and PDB_NAME target properties (#10830)
This enables changing the name and output folder of the debug symbol files produced by MS compilers. Inspired-by: Thomas Bernard <thomas.bernard@ipetronik.com>
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 98eaeec..e1a9de7 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -301,6 +301,12 @@ public:
output directory is given. */
std::string GetDirectory(const char* config = 0, bool implib = false);
+ /** Get the directory in which this targets .pdb files will be placed.
+ If the configuration name is given then the generator will add its
+ subdirectory for that configuration. Otherwise just the canonical
+ pdb output directory is given. */
+ std::string GetPDBDirectory(const char* config = 0);
+
/** Get the location of the target in the build tree for the given
configuration. This location is suitable for use as the LOCATION
target property. */
@@ -593,6 +599,7 @@ private:
struct OutputInfo;
OutputInfo const* GetOutputInfo(const char* config);
bool ComputeOutputDir(const char* config, bool implib, std::string& out);
+ void ComputePDBOutputDir(const char* config, std::string& out);
// Cache import information from properties for each configuration.
struct ImportInfo;