cmGeneratorTarget: synthetic targets don't have output either

This commit is contained in:
Ben Boeckel
2023-01-31 22:57:59 -05:00
parent bde9d4ad01
commit dadaa28638

View File

@@ -7115,6 +7115,11 @@ cmGeneratorTarget::OutputInfo const* cmGeneratorTarget::GetOutputInfo(
return nullptr;
}
// Synthetic targets don't have output.
if (this->IsSynthetic()) {
return nullptr;
}
// Only libraries and executables have well-defined output files.
if (!this->HaveWellDefinedOutputFiles()) {
std::string msg = cmStrCat("cmGeneratorTarget::GetOutputInfo called for ",