From 079826d3670354e5331bbdc1c09f4e7376e16b54 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 13 Jan 2006 19:35:16 -0500 Subject: COMP: Removed unused variables. --- Source/cmFileCommand.cxx | 6 ------ Source/cmLocalGenerator.cxx | 11 ----------- 2 files changed, 17 deletions(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index fee585f..e1214d2 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -291,16 +291,10 @@ bool cmFileCommand::HandleInstallCommand( const char* destdir = cmSystemTools::GetEnv("DESTDIR"); std::string extra_dir = ""; - int debug = 0; if ( build_type ) { extra_dir = 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 files; diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index ed6e372..8e91368 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1307,17 +1307,6 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, std::vector runtimeDirs; 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()); if(!linkLanguage) { -- cgit v0.12