summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-05-01 14:39:28 (GMT)
committerBrad King <brad.king@kitware.com>2009-05-01 14:39:28 (GMT)
commitbcb9a479db38b5775cb84c1265b3a18736a3dfc1 (patch)
tree5067574115a8e0ba0955f5dd4e32315de6e064c6 /Source
parent430cc2b4b7a817be2fbc445d6803163f1695a533 (diff)
downloadCMake-bcb9a479db38b5775cb84c1265b3a18736a3dfc1.zip
CMake-bcb9a479db38b5775cb84c1265b3a18736a3dfc1.tar.gz
CMake-bcb9a479db38b5775cb84c1265b3a18736a3dfc1.tar.bz2
ENH: Remove cmTarget::GetExecutableCleanNames
This method was redundant with GetExecutableNames.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx28
-rw-r--r--Source/cmTarget.cxx12
-rw-r--r--Source/cmTarget.h8
3 files changed, 7 insertions, 41 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index acffb8a..332c116 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -253,38 +253,25 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
// Construct a list of files associated with this executable that
// may need to be cleaned.
std::vector<std::string> exeCleanFiles;
- {
- std::string cleanName;
- std::string cleanRealName;
- std::string cleanImportName;
- std::string cleanPDBName;
- this->Target->GetExecutableCleanNames
- (cleanName, cleanRealName, cleanImportName, cleanPDBName,
- this->LocalGenerator->ConfigurationName.c_str());
-
- std::string cleanFullName = outpath + cleanName;
- std::string cleanFullRealName = outpath + cleanRealName;
- std::string cleanFullPDBName = outpath + cleanPDBName;
- std::string cleanFullImportName = outpathImp + cleanImportName;
- exeCleanFiles.push_back(this->Convert(cleanFullName.c_str(),
+ exeCleanFiles.push_back(this->Convert(targetFullPath.c_str(),
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED));
#ifdef _WIN32
// There may be a manifest file for this target. Add it to the
// clean set just in case.
- exeCleanFiles.push_back(this->Convert((cleanFullName+".manifest").c_str(),
+ exeCleanFiles.push_back(this->Convert((targetFullPath+".manifest").c_str(),
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED));
#endif
- if(cleanRealName != cleanName)
+ if(targetNameReal != targetName)
{
- exeCleanFiles.push_back(this->Convert(cleanFullRealName.c_str(),
+ exeCleanFiles.push_back(this->Convert(targetFullPathReal.c_str(),
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED));
}
- if(!cleanImportName.empty())
+ if(!targetNameImport.empty())
{
- exeCleanFiles.push_back(this->Convert(cleanFullImportName.c_str(),
+ exeCleanFiles.push_back(this->Convert(targetFullPathImport.c_str(),
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED));
}
@@ -293,10 +280,9 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
// cleaned. We do not want to delete the .pdb file just before
// linking the target.
this->CleanFiles.push_back
- (this->Convert(cleanFullPDBName.c_str(),
+ (this->Convert(targetFullPathPDB.c_str(),
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED));
- }
// Add the pre-build and pre-link rules building but not when relinking.
if(!relink)
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 1f0464d..17a2338 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2836,18 +2836,6 @@ void cmTarget::GetExecutableNames(std::string& name,
}
//----------------------------------------------------------------------------
-void cmTarget::GetExecutableCleanNames(std::string& name,
- std::string& realName,
- std::string& impName,
- std::string& pdbName,
- const char* config)
-{
- // Get the name and versioned name of this executable.
- this->GetExecutableNamesInternal(name, realName, impName, pdbName,
- cmTarget::EXECUTABLE, config);
-}
-
-//----------------------------------------------------------------------------
void cmTarget::GetExecutableNamesInternal(std::string& name,
std::string& realName,
std::string& impName,
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index e89add1..32e8285 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -333,14 +333,6 @@ public:
std::string& impName,
std::string& pdbName, const char* config);
- /** Get the names of the executable used to remove existing copies
- of the executable from the build tree either before linking or
- during a clean step. This should be called only on an
- executable target. */
- void GetExecutableCleanNames(std::string& name, std::string& realName,
- std::string& impName,
- std::string& pdbName, const char* config);
-
/** Add the target output files to the global generator manifest. */
void GenerateTargetManifest(const char* config);