mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Refactor: Add new methods to retrieve prefix and suffix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user