diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2016-11-30 16:20:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-30 16:45:11 (GMT) |
commit | 163e8018098699b15f7aef9ded444aa72de49701 (patch) | |
tree | d45cf50786e3271c673c603d3996f88899603665 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | afe7d5f26d16a76d26ac361d7a41a5119d20dd11 (diff) | |
download | CMake-163e8018098699b15f7aef9ded444aa72de49701.zip CMake-163e8018098699b15f7aef9ded444aa72de49701.tar.gz CMake-163e8018098699b15f7aef9ded444aa72de49701.tar.bz2 |
VS: Add target property VS_DEBUGGER_WORKING_DIRECTORY
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-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); |