summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorJoseph Snyder <joe.snyder@kitware.com>2019-11-19 14:04:40 -0500
committerKyle Edwards <kyle.edwards@kitware.com>2020-01-02 17:11:31 -0500
commitc621839bd9e17974c476e7332fc267ccaa351a8e (patch)
treeb043f29e1cfc20e44ddd6f0cc0328c09f30bd961 /Source/cmGeneratorTarget.h
parent10fea25139cc302ef0f0a41aa68b44cda72a4fd2 (diff)
downloadcmake-c621839bd9e17974c476e7332fc267ccaa351a8e.tar.gz
Add set_property option: DEPRECATION
Add a new property flag for a target which contains a message regarding deprecation status. Add a warning at "Generate" time if a linked target is marked as deprecated. Expand ExportImport test to ensure that new property is being set and passed correctly. Ensure that the message is shown during the "Generate" step run of the ExportImport test.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index eabd3fa9f6..0a72cbea7a 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -250,6 +250,13 @@ public:
std::string GetAppBundleDirectory(const std::string& config,
BundleDirectoryLevel level) const;
+ /** Return whether this target is marked as deprecated by the
+ maintainer */
+ bool IsDeprecated() const;
+
+ /** Returns the deprecation message provided by the maintainer */
+ std::string GetDeprecation() const;
+
/** Return whether this target is an executable Bundle, a framework
or CFBundle on Apple. */
bool IsBundleOnApple() const;