diff options
author | Brad King <brad.king@kitware.com> | 2016-12-01 13:50:30 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-12-01 13:50:30 (GMT) |
commit | 75f2a1e4598c0ecb16537e1b1344b63d69c6b0f6 (patch) | |
tree | 7a2ce80389c13074e81cb990a89db45719766e97 /Source | |
parent | 7b6f6d9e67431cdcdd9a8f1de92c66651768814c (diff) | |
parent | 163e8018098699b15f7aef9ded444aa72de49701 (diff) | |
download | CMake-75f2a1e4598c0ecb16537e1b1344b63d69c6b0f6.zip CMake-75f2a1e4598c0ecb16537e1b1344b63d69c6b0f6.tar.gz CMake-75f2a1e4598c0ecb16537e1b1344b63d69c6b0f6.tar.bz2 |
Merge topic 'VS_DEBUGGER_WORKING_DIRECTORY'
163e8018 VS: Add target property VS_DEBUGGER_WORKING_DIRECTORY
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 5b99007..3632663 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1569,6 +1569,14 @@ void cmVisualStudio10TargetGenerator::WritePathAndIncrementalLinkOptions() *this->BuildFileStream << cmVS10EscapeXML(intermediateDir) << "</IntDir>\n"; + if (const char* workingDir = this->GeneratorTarget->GetProperty( + "VS_DEBUGGER_WORKING_DIRECTORY")) { + this->WritePlatformConfigTag("LocalDebuggerWorkingDirectory", + config->c_str(), 3); + *this->BuildFileStream << cmVS10EscapeXML(workingDir) + << "</LocalDebuggerWorkingDirectory>\n"; + } + std::string name = cmSystemTools::GetFilenameWithoutLastExtension(targetNameFull); this->WritePlatformConfigTag("TargetName", config->c_str(), 3); |