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.
This commit is contained in:
Brad King
2020-07-21 13:22:26 -04:00
parent 422d9a0ab2
commit 2f0790df50
7 changed files with 37 additions and 22 deletions
+1
View File
@@ -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;