ENH: fix for subdir all target after control c
This commit is contained in:
parent
88e3cd53ab
commit
bec28bb03b
|
@ -1446,25 +1446,26 @@ void cmLocalUnixMakefileGenerator3
|
|||
|
||||
depends.push_back("cmake_check_build_system");
|
||||
|
||||
if (!this->Parent)
|
||||
{
|
||||
std::string progressDir = this->Makefile->GetHomeOutputDirectory();
|
||||
progressDir += cmake::GetCMakeFilesDirectory();
|
||||
cmOStringStream progCmd;
|
||||
progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # src files
|
||||
progCmd << this->Convert(progressDir.c_str(),
|
||||
cmLocalGenerator::FULL,
|
||||
cmLocalGenerator::SHELL);
|
||||
cmGlobalUnixMakefileGenerator3 *gg =
|
||||
std::string progressDir = this->Makefile->GetHomeOutputDirectory();
|
||||
progressDir += cmake::GetCMakeFilesDirectory();
|
||||
cmOStringStream progCmd;
|
||||
progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # src files
|
||||
progCmd << this->Convert(progressDir.c_str(),
|
||||
cmLocalGenerator::FULL,
|
||||
cmLocalGenerator::SHELL);
|
||||
cmGlobalUnixMakefileGenerator3 *gg =
|
||||
static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
|
||||
int n = gg->GetNumberOfSourceFiles();
|
||||
if(n > 100)
|
||||
{
|
||||
n = 100;
|
||||
}
|
||||
progCmd << " " << n;
|
||||
commands.push_back(progCmd.str());
|
||||
int n = gg->GetNumberOfSourceFiles();
|
||||
if(n > 100)
|
||||
{
|
||||
n = 100;
|
||||
}
|
||||
if (this->Parent)
|
||||
{
|
||||
n = 0;
|
||||
}
|
||||
progCmd << " " << n;
|
||||
commands.push_back(progCmd.str());
|
||||
|
||||
std::string mf2Dir = cmake::GetCMakeFilesDirectoryPostSlash();
|
||||
mf2Dir += "Makefile2";
|
||||
|
|
Loading…
Reference in New Issue