Xcode: Create separate rerun dependencies for subprojects (#12616)
Generate the rerun dependency file for the top-level project() and each subdirectory project() into the corresponding build directory. Do not clobber them all with the one for the last subproject. This mistake was left from when the Xcode generator did not produce subprojects.
This commit is contained in:
parent
e61d2ded80
commit
e8b8f0eda8
|
@ -458,8 +458,7 @@ void cmGlobalXCodeGenerator::CreateReRunCMakeFile(
|
||||||
std::vector<std::string>::iterator new_end =
|
std::vector<std::string>::iterator new_end =
|
||||||
std::unique(lfiles.begin(), lfiles.end());
|
std::unique(lfiles.begin(), lfiles.end());
|
||||||
lfiles.erase(new_end, lfiles.end());
|
lfiles.erase(new_end, lfiles.end());
|
||||||
std::string dir = mf->GetHomeOutputDirectory();
|
this->CurrentReRunCMakeMakefile = mf->GetStartOutputDirectory();
|
||||||
this->CurrentReRunCMakeMakefile = dir;
|
|
||||||
this->CurrentReRunCMakeMakefile += "/CMakeScripts";
|
this->CurrentReRunCMakeMakefile += "/CMakeScripts";
|
||||||
cmSystemTools::MakeDirectory(this->CurrentReRunCMakeMakefile.c_str());
|
cmSystemTools::MakeDirectory(this->CurrentReRunCMakeMakefile.c_str());
|
||||||
this->CurrentReRunCMakeMakefile += "/ReRunCMake.make";
|
this->CurrentReRunCMakeMakefile += "/ReRunCMake.make";
|
||||||
|
|
Loading…
Reference in New Issue