From afd9a339a1d7cbdf9aafff4ee6c454382e923aa9 Mon Sep 17 00:00:00 2001 From: Justin Goshi Date: Fri, 10 Nov 2017 11:09:24 -0800 Subject: server: return whether or not a target is generator provided Some generators auto-generate targets. For example VS generators create the ALL_BUILD target. Add the ability to mark targets as generator provided and return that info through cmake-server codemodel. --- Source/cmTarget.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/cmTarget.h') diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 940e26c690..56f3e3a043 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -180,6 +180,12 @@ public: bool GetHaveInstallRule() const { return this->HaveInstallRule; } void SetHaveInstallRule(bool h) { this->HaveInstallRule = h; } + /** + * Get/Set whether this target was auto-created by a generator. + */ + bool GetIsGeneratorProvided() const { return this->IsGeneratorProvided; } + void SetIsGeneratorProvided(bool igp) { this->IsGeneratorProvided = igp; } + /** Add a utility on which this project depends. A utility is an executable * name as would be specified to the ADD_EXECUTABLE or UTILITY_SOURCE * commands. It is not a full path nor does it have an extension. @@ -284,6 +290,7 @@ private: std::string const& value) const; private: + bool IsGeneratorProvided; cmPropertyMap Properties; std::set SystemIncludeDirectories; std::set LinkDirectoriesEmmitted; -- cgit v1.2.1