diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-27 15:03:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-27 15:03:32 (GMT) |
commit | de67154214cd2c087086f94ea380656ccb67d053 (patch) | |
tree | 75c146ca826acb4eb1c84967d09fb7748fc1e5de | |
parent | e14ecec4c7f1c950b65366d776b108eb353bbaf1 (diff) | |
download | CMake-de67154214cd2c087086f94ea380656ccb67d053.zip CMake-de67154214cd2c087086f94ea380656ccb67d053.tar.gz CMake-de67154214cd2c087086f94ea380656ccb67d053.tar.bz2 |
ENH: fix in source build with non-gnu
-rw-r--r-- | Source/cmMakefile.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index e72f28a..20a1363 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) |