mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
Merge topic 'vs-16.4-custom-command-inputs' into release-3.16
58b0674687 VS: Tell VS 16.4 not to verify SYMBOLIC custom command inputs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4297
This commit is contained in:
@@ -1430,6 +1430,7 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
|
||||
std::string comment = lg->ConstructComment(ccg);
|
||||
comment = cmVS10EscapeComment(comment);
|
||||
std::string script = lg->ConstructScript(ccg);
|
||||
bool symbolic = false;
|
||||
// input files for custom command
|
||||
std::stringstream additional_inputs;
|
||||
{
|
||||
@@ -1456,6 +1457,12 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
|
||||
ConvertToWindowsSlash(dep);
|
||||
additional_inputs << sep << dep;
|
||||
sep = ";";
|
||||
if (!symbolic) {
|
||||
if (cmSourceFile* sf = this->Makefile->GetSource(
|
||||
dep, cmSourceFileLocationKind::Known)) {
|
||||
symbolic = sf->GetPropertyAsBool("SYMBOLIC");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this->ProjectType != csproj) {
|
||||
@@ -1464,7 +1471,6 @@ void cmVisualStudio10TargetGenerator::WriteCustomRule(
|
||||
}
|
||||
// output files for custom command
|
||||
std::stringstream outputs;
|
||||
bool symbolic = false;
|
||||
{
|
||||
const char* sep = "";
|
||||
for (std::string const& o : ccg.GetOutputs()) {
|
||||
|
||||
Reference in New Issue
Block a user