summaryrefslogtreecommitdiff
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-22 13:22:30 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-22 13:22:30 -0400
commitbeaa7dc1c84a58063f72c54559ecf0b2b45de45c (patch)
treed652bfb87b09db966bda4fc6acdd58b29f656e8c /Source/cmUnixMakefileGenerator.cxx
parent69503c66eb8225b57b5e8968f2d58d646bcf3191 (diff)
downloadcmake-beaa7dc1c84a58063f72c54559ecf0b2b45de45c.tar.gz
BUG: fix depends and CXXFLAGS passing
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 344871b4cc..ff3d29e397 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -133,11 +133,10 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
this->OutputDependencies(fout);
this->OutputTargets(fout);
this->OutputSubDirectoryRules(fout);
- std::string dependName;
+ std::string dependName = m_Makefile->GetStartOutputDirectory();
+ dependName += "/cmake.depends";
if(!this->m_CacheOnly)
{
- dependName = m_Makefile->GetStartOutputDirectory();
- dependName += "/cmake.depends";
std::ofstream dependout(dependName.c_str());
if(!dependout)
{