diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-04-10 15:52:11 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-04-10 16:37:03 (GMT) |
commit | f65763fe9be16ccded53f26dda257fdb028cccf6 (patch) | |
tree | bffb176f6618f2205ea6673c71c6007e39c2b0a0 /Source/cmGeneratorTarget.h | |
parent | 876680e94bed75e1e22a78f1e063e545ff6bce69 (diff) | |
download | CMake-f65763fe9be16ccded53f26dda257fdb028cccf6.zip CMake-f65763fe9be16ccded53f26dda257fdb028cccf6.tar.gz CMake-f65763fe9be16ccded53f26dda257fdb028cccf6.tar.bz2 |
Refactor: Add new methods to retrieve prefix and suffix
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 065b457..81f5255 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -534,6 +534,15 @@ public: std::string GetOutputName(const std::string& config, cmStateEnums::ArtifactType artifact) const; + /** Get target file prefix */ + std::string GetFilePrefix(const std::string& config, + cmStateEnums::ArtifactType artifact = + cmStateEnums::RuntimeBinaryArtifact) const; + /** Get target file prefix */ + std::string GetFileSuffix(const std::string& config, + cmStateEnums::ArtifactType artifact = + cmStateEnums::RuntimeBinaryArtifact) const; + /** Clears cached meta data for local and external source files. * The meta data will be recomputed on demand. */ @@ -728,6 +737,11 @@ private: mutable std::map<std::string, bool> DebugCompatiblePropertiesDone; + const char* GetFilePrefixInternal(cmStateEnums::ArtifactType artifact, + const std::string& language = "") const; + const char* GetFileSuffixInternal(cmStateEnums::ArtifactType artifact, + const std::string& language = "") const; + std::string GetFullNameInternal(const std::string& config, cmStateEnums::ArtifactType artifact) const; void GetFullNameInternal(const std::string& config, |