|
|
@@ -2286,14 +2286,51 @@ void cmVisualStudio10TargetGenerator::WritePathAndIncrementalLinkOptions(
|
|
|
|
|
|
if (const char* workingDir = this->GeneratorTarget->GetProperty(
|
|
|
"VS_DEBUGGER_WORKING_DIRECTORY")) {
|
|
|
+ cmGeneratorExpression ge;
|
|
|
+ std::unique_ptr<cmCompiledGeneratorExpression> cge =
|
|
|
+ ge.Parse(workingDir);
|
|
|
+ std::string genWorkingDir =
|
|
|
+ cge->Evaluate(this->LocalGenerator, config);
|
|
|
+
|
|
|
e1.WritePlatformConfigTag("LocalDebuggerWorkingDirectory", cond,
|
|
|
- workingDir);
|
|
|
+ genWorkingDir);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (const char* environment =
|
|
|
+ this->GeneratorTarget->GetProperty("VS_DEBUGGER_ENVIRONMENT")) {
|
|
|
+ cmGeneratorExpression ge;
|
|
|
+ std::unique_ptr<cmCompiledGeneratorExpression> cge =
|
|
|
+ ge.Parse(environment);
|
|
|
+ std::string genEnvironment =
|
|
|
+ cge->Evaluate(this->LocalGenerator, config);
|
|
|
+
|
|
|
+ e1.WritePlatformConfigTag("LocalDebuggerEnvironment", cond,
|
|
|
+ genEnvironment);
|
|
|
}
|
|
|
|
|
|
if (const char* debuggerCommand =
|
|
|
this->GeneratorTarget->GetProperty("VS_DEBUGGER_COMMAND")) {
|
|
|
+
|
|
|
+ cmGeneratorExpression ge;
|
|
|
+ std::unique_ptr<cmCompiledGeneratorExpression> cge =
|
|
|
+ ge.Parse(debuggerCommand);
|
|
|
+ std::string genDebuggerCommand =
|
|
|
+ cge->Evaluate(this->LocalGenerator, config);
|
|
|
+
|
|
|
e1.WritePlatformConfigTag("LocalDebuggerCommand", cond,
|
|
|
- debuggerCommand);
|
|
|
+ genDebuggerCommand);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (const char* commandArguments = this->GeneratorTarget->GetProperty(
|
|
|
+ "VS_DEBUGGER_COMMAND_ARGUMENTS")) {
|
|
|
+ cmGeneratorExpression ge;
|
|
|
+ std::unique_ptr<cmCompiledGeneratorExpression> cge =
|
|
|
+ ge.Parse(commandArguments);
|
|
|
+ std::string genCommandArguments =
|
|
|
+ cge->Evaluate(this->LocalGenerator, config);
|
|
|
+
|
|
|
+ e1.WritePlatformConfigTag("LocalDebuggerCommandArguments", cond,
|
|
|
+ genCommandArguments);
|
|
|
}
|
|
|
|
|
|
std::string name =
|