summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-21 19:40:54 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-08-17 18:42:53 (GMT)
commitcaf5971c8a628b29c2d5c56cb08cbe54b0449f35 (patch)
treefe7446753384d290006dd157cf64b25806db18a8 /Source/cmTarget.cxx
parent3a8ea5c3a0216d3e9ecedc7fbd1d6adaff0ee7c5 (diff)
downloadCMake-caf5971c8a628b29c2d5c56cb08cbe54b0449f35.zip
CMake-caf5971c8a628b29c2d5c56cb08cbe54b0449f35.tar.gz
CMake-caf5971c8a628b29c2d5c56cb08cbe54b0449f35.tar.bz2
cmTarget: report that synthetic targets can compile sources
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx3
1 files changed, 3 insertions, 0 deletions
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: