summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
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.h
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.h')
-rw-r--r--Source/cmGeneratorTarget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 65683e6..4a03f65 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -48,6 +48,7 @@ public:
bool IsInBuildSystem() const;
bool IsImported() const;
bool IsImportedGloballyVisible() const;
+ bool CanCompileSources() const;
const std::string& GetLocation(const std::string& config) const;
std::vector<cmCustomCommand> const& GetPreBuildCommands() const;