summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-29 14:53:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-29 14:53:05 (GMT)
commit3455bec9cb3438e30eb9d7f80aa1c372b212e955 (patch)
tree7b98163443460f0909f68441408921b8ee7e419f /Source/cmLocalUnixMakefileGenerator.cxx
parent7aa8085b4868f8a960a92a17d8d32dc7ff46884f (diff)
downloadCMake-3455bec9cb3438e30eb9d7f80aa1c372b212e955.zip
CMake-3455bec9cb3438e30eb9d7f80aa1c372b212e955.tar.gz
CMake-3455bec9cb3438e30eb9d7f80aa1c372b212e955.tar.bz2
ERR: Cleanup and remove warning
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 7a7d659..7c7d227 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1315,16 +1315,6 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
const cmTarget &t)
{
std::string linkFlags;
- bool win32_executable = false;
- bool macosx_bundle = false;
- if ( t.GetPropertyAsBool("WIN32_EXECUTABLE") )
- {
- win32_executable = true;
- }
- if ( t.GetPropertyAsBool("MACOSX_BUNDLE") )
- {
- macosx_bundle = true;
- }
std::string buildType = this->GetSafeDefinition("CMAKE_BUILD_TYPE");
buildType = cmSystemTools::UpperCase(buildType);
@@ -1341,7 +1331,7 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
}
}
#ifdef __APPLE__
- if ( macosx_bundle )
+ if ( t.GetPropertyAsBool("MACOSX_BUNDLE") )
{
// Make bundle directories
target += name;
@@ -1420,7 +1410,7 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
linkFlags += " ";
}
- if(win32_executable)
+ if ( t.GetPropertyAsBool("WIN32_EXECUTABLE") )
{
linkFlags += this->GetSafeDefinition("CMAKE_CREATE_WIN32_EXE");
linkFlags += " ";