From de67154214cd2c087086f94ea380656ccb67d053 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 27 Apr 2001 11:03:32 -0400 Subject: [PATCH] ENH: fix in source build with non-gnu --- Source/cmMakefile.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index e72f28afb..20a13639a 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -668,6 +668,17 @@ void cmMakefile::GenerateCacheOnly() } fout << "include " << mf->GetHomeOutputDirectory() << "/CMake/CMakeMaster.make\n"; + dest = mf->GetStartOutputDirectory(); + dest += "/CMakeTargets.make"; + std::cout << "cmake: creating : " << dest.c_str() << "\n"; + std::ofstream fout2(dest.c_str()); + if(!fout2) + { + cmSystemTools::Error("Failed to open file for write " , dest.c_str()); + } + fout2 << "#Initial CMakeTargets.make file created only to keep \n"; + fout2 << "#certain makes happy that don't like to include makefiles\n"; + fout2 << "#that do not exist\n"; } for(unsigned int i =0; i < makefiles.size(); ++i)