From caf5971c8a628b29c2d5c56cb08cbe54b0449f35 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 21 Jul 2023 15:40:54 -0400 Subject: cmTarget: report that synthetic targets can compile sources --- Source/cmTarget.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 5d67d60..7d4b497 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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: -- cgit v0.12