diff options
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 344871b..ff3d29e 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) { |