cmTarget: report that synthetic targets can compile sources

This commit is contained in:
Ben Boeckel
2023-07-21 15:40:54 -04:00
parent 3a8ea5c3a0
commit caf5971c8a
+3
View File
@@ -2713,6 +2713,9 @@ bool cmTarget::CanCompileSources() const
if (this->IsImported()) {
return false;
}
if (this->IsSynthetic()) {
return true;
}
switch (this->GetType()) {
case cmStateEnums::EXECUTABLE:
case cmStateEnums::STATIC_LIBRARY: