summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-04-10 15:52:11 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-04-10 16:37:03 (GMT)
commitf65763fe9be16ccded53f26dda257fdb028cccf6 (patch)
treebffb176f6618f2205ea6673c71c6007e39c2b0a0 /Source/cmGeneratorTarget.h
parent876680e94bed75e1e22a78f1e063e545ff6bce69 (diff)
downloadCMake-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.h14
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,