summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-21 17:22:26 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-23 17:31:45 (GMT)
commit2f0790df5046bfc99383317eb7d24cd4030200be (patch)
tree60362de080828e4b1b4fcd849b2d3e07ac157a42 /Source/cmGeneratorTarget.cxx
parent422d9a0ab21ff430e5fd012cf965dd92068d185f (diff)
downloadCMake-2f0790df5046bfc99383317eb7d24cd4030200be.zip
CMake-2f0790df5046bfc99383317eb7d24cd4030200be.tar.gz
CMake-2f0790df5046bfc99383317eb7d24cd4030200be.tar.bz2
Factor out generator checks for filtering on non-compiling targets
Add a `cmGeneratorTarget::CanCompileSources` helper method to tell generators whether a target might compile anything.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 9978320..beafdea 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1120,6 +1120,11 @@ bool cmGeneratorTarget::IsImportedGloballyVisible() const
return this->Target->IsImportedGloballyVisible();
}
+bool cmGeneratorTarget::CanCompileSources() const
+{
+ return this->Target->CanCompileSources();
+}
+
const std::string& cmGeneratorTarget::GetLocationForBuild() const
{
static std::string location;