summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 17:19:51 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-16 18:24:44 (GMT)
commit12e4790a0b40d8176940f855f7f6c9cfe6c39f9f (patch)
treeb23abcd5502f02ed491621cca09689666fd93d83 /Source/cmGeneratorTarget.h
parent14272277205ac7927a4c13b628ce411538f7b17c (diff)
downloadCMake-12e4790a0b40d8176940f855f7f6c9cfe6c39f9f.zip
CMake-12e4790a0b40d8176940f855f7f6c9cfe6c39f9f.tar.gz
CMake-12e4790a0b40d8176940f855f7f6c9cfe6c39f9f.tar.bz2
cmGeneratorTarget: Move GetTargetVersion from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 0c198bb..f3b8d1f 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -445,6 +445,17 @@ public:
const char* ImportedGetLocation(const std::string& config) const;
+ /** Get the target major and minor version numbers interpreted from
+ the VERSION property. Version 0 is returned if the property is
+ not set or cannot be parsed. */
+ void GetTargetVersion(int& major, int& minor) const;
+
+ /** Get the target major, minor, and patch version numbers
+ interpreted from the VERSION or SOVERSION property. Version 0
+ is returned if the property is not set or cannot be parsed. */
+ void
+ GetTargetVersion(bool soversion, int& major, int& minor, int& patch) const;
+
private:
friend class cmTargetTraceDependencies;
struct SourceEntry { std::vector<cmSourceFile*> Depends; };