COMP: Removed unused variables.

This commit is contained in:
Brad King 2006-01-13 19:35:16 -05:00
parent 327489ae59
commit 079826d367
2 changed files with 0 additions and 17 deletions

View File

@ -291,16 +291,10 @@ bool cmFileCommand::HandleInstallCommand(
const char* destdir = cmSystemTools::GetEnv("DESTDIR"); const char* destdir = cmSystemTools::GetEnv("DESTDIR");
std::string extra_dir = ""; std::string extra_dir = "";
int debug = 0;
if ( build_type ) if ( build_type )
{ {
extra_dir = build_type; extra_dir = build_type;
std::string btype = cmSystemTools::LowerCase(build_type); std::string btype = cmSystemTools::LowerCase(build_type);
if ( m_Makefile->GetDefinition("WIN32")
&& strncmp(btype.c_str(), "debug", strlen("debug")) == 0 )
{
debug = 1;
}
} }
std::vector<std::string> files; std::vector<std::string> files;

View File

@ -1307,17 +1307,6 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout,
std::vector<std::string> runtimeDirs; std::vector<std::string> runtimeDirs;
const char* config = m_Makefile->GetDefinition("CMAKE_BUILD_TYPE"); const char* config = m_Makefile->GetDefinition("CMAKE_BUILD_TYPE");
std::string buildType = config?config:"";
buildType = cmSystemTools::UpperCase(buildType);
cmTarget::LinkLibraryType cmakeBuildType = cmTarget::GENERAL;
if(buildType == "DEBUG")
{
cmakeBuildType = cmTarget::DEBUG;
}
else if(buildType.size())
{
cmakeBuildType = cmTarget::OPTIMIZED;
}
const char* linkLanguage = tgt.GetLinkerLanguage(this->GetGlobalGenerator()); const char* linkLanguage = tgt.GetLinkerLanguage(this->GetGlobalGenerator());
if(!linkLanguage) if(!linkLanguage)
{ {