mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
Merge topic 'makefiles-deep-configure'
e46e3442fd Makefiles: Re-run CMake if file configured in subdirectory is missing
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4359
This commit is contained in:
@@ -343,19 +343,18 @@ void cmGlobalUnixMakefileGenerator3::WriteMainCMakefile()
|
||||
const std::string& binDir = lg.GetBinaryDirectory();
|
||||
|
||||
// CMake must rerun if a byproduct is missing.
|
||||
{
|
||||
cmakefileStream << "# Byproducts of CMake generate step:\n"
|
||||
<< "set(CMAKE_MAKEFILE_PRODUCTS\n";
|
||||
for (std::string const& outfile : lg.GetMakefile()->GetOutputFiles()) {
|
||||
cmakefileStream << "# Byproducts of CMake generate step:\n"
|
||||
<< "set(CMAKE_MAKEFILE_PRODUCTS\n";
|
||||
|
||||
// add in any byproducts and all the directory information files
|
||||
std::string tmpStr;
|
||||
for (const auto& localGen : this->LocalGenerators) {
|
||||
for (std::string const& outfile :
|
||||
localGen->GetMakefile()->GetOutputFiles()) {
|
||||
cmakefileStream << " \""
|
||||
<< lg.MaybeConvertToRelativePath(binDir, outfile)
|
||||
<< "\"\n";
|
||||
}
|
||||
}
|
||||
|
||||
// add in all the directory information files
|
||||
std::string tmpStr;
|
||||
for (const auto& localGen : this->LocalGenerators) {
|
||||
tmpStr = cmStrCat(localGen->GetCurrentBinaryDirectory(),
|
||||
"/CMakeFiles/CMakeDirectoryInformation.cmake");
|
||||
cmakefileStream << " \""
|
||||
|
||||
Reference in New Issue
Block a user