mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmGeneratorTarget: synthetic targets don't have output either
This commit is contained in:
@@ -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 ",
|
||||
|
||||
Reference in New Issue
Block a user