BUG: Do not re-generate after a AppBundle build
A previous change accidentally added the MacOS content directory and Info.plist files created for MACOSX_BUNDLE executables to the list of CMake input files. This causes CMake to re-generate the project too often. These items should be added to the list of CMake output files.
This commit is contained in:
parent
16fe328dfc
commit
67671ac400
|
@ -476,8 +476,8 @@ cmMakefileExecutableTargetGenerator::CreateAppBundle(std::string& targetName,
|
||||||
outpath = this->MacContentDirectory;
|
outpath = this->MacContentDirectory;
|
||||||
outpath += "MacOS";
|
outpath += "MacOS";
|
||||||
cmSystemTools::MakeDirectory(outpath.c_str());
|
cmSystemTools::MakeDirectory(outpath.c_str());
|
||||||
|
this->Makefile->AddCMakeOutputFile(outpath.c_str());
|
||||||
outpath += "/";
|
outpath += "/";
|
||||||
this->Makefile->AddCMakeDependFile(outpath.c_str());
|
|
||||||
|
|
||||||
// Configure the Info.plist file. Note that it needs the executable name
|
// Configure the Info.plist file. Note that it needs the executable name
|
||||||
// to be set.
|
// to be set.
|
||||||
|
@ -485,5 +485,5 @@ cmMakefileExecutableTargetGenerator::CreateAppBundle(std::string& targetName,
|
||||||
this->LocalGenerator->GenerateAppleInfoPList(this->Target,
|
this->LocalGenerator->GenerateAppleInfoPList(this->Target,
|
||||||
targetName.c_str(),
|
targetName.c_str(),
|
||||||
plist.c_str());
|
plist.c_str());
|
||||||
this->Makefile->AddCMakeDependFile(plist.c_str());
|
this->Makefile->AddCMakeOutputFile(plist.c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue