mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 23:00:50 +08:00
VS: Isolate custom command input/output generation scopes
This commit is contained in:
@@ -1354,6 +1354,7 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
|
|||||||
std::string script = lg->ConstructScript(ccg);
|
std::string script = lg->ConstructScript(ccg);
|
||||||
// input files for custom command
|
// input files for custom command
|
||||||
std::stringstream inputs;
|
std::stringstream inputs;
|
||||||
|
{
|
||||||
inputs << source->GetFullPath();
|
inputs << source->GetFullPath();
|
||||||
for (std::string const& d : ccg.GetDepends()) {
|
for (std::string const& d : ccg.GetDepends()) {
|
||||||
std::string dep;
|
std::string dep;
|
||||||
@@ -1362,8 +1363,10 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
|
|||||||
inputs << ";" << dep;
|
inputs << ";" << dep;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// output files for custom command
|
// output files for custom command
|
||||||
std::stringstream outputs;
|
std::stringstream outputs;
|
||||||
|
{
|
||||||
const char* sep = "";
|
const char* sep = "";
|
||||||
for (std::string const& o : ccg.GetOutputs()) {
|
for (std::string const& o : ccg.GetOutputs()) {
|
||||||
std::string out = o;
|
std::string out = o;
|
||||||
@@ -1371,6 +1374,7 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
|
|||||||
outputs << sep << out;
|
outputs << sep << out;
|
||||||
sep = ";";
|
sep = ";";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (this->ProjectType == csproj) {
|
if (this->ProjectType == csproj) {
|
||||||
std::string name = "CustomCommand_" + c + "_" +
|
std::string name = "CustomCommand_" + c + "_" +
|
||||||
cmSystemTools::ComputeStringMD5(sourcePath);
|
cmSystemTools::ComputeStringMD5(sourcePath);
|
||||||
|
Reference in New Issue
Block a user