mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05:00
cmLocalGenerator: Add current binary directory accessor.
This commit is contained in:
@@ -163,7 +163,7 @@ void cmGlobalUnixMakefileGenerator3::Generate()
|
||||
{
|
||||
cmLocalUnixMakefileGenerator3 *lg =
|
||||
static_cast<cmLocalUnixMakefileGenerator3 *>(this->LocalGenerators[i]);
|
||||
std::string markFileName = lg->GetMakefile()->GetCurrentBinaryDirectory();
|
||||
std::string markFileName = lg->GetCurrentBinaryDirectory();
|
||||
markFileName += "/";
|
||||
markFileName += cmake::GetCMakeFilesDirectory();
|
||||
markFileName += "/progress.marks";
|
||||
@@ -395,7 +395,7 @@ void cmGlobalUnixMakefileGenerator3::WriteMainCMakefile()
|
||||
{
|
||||
lg =
|
||||
static_cast<cmLocalUnixMakefileGenerator3 *>(this->LocalGenerators[i]);
|
||||
tmpStr = lg->GetMakefile()->GetCurrentBinaryDirectory();
|
||||
tmpStr = lg->GetCurrentBinaryDirectory();
|
||||
tmpStr += cmake::GetCMakeFilesDirectory();
|
||||
tmpStr += "/CMakeDirectoryInformation.cmake";
|
||||
cmakefileStream << " \"" <<
|
||||
@@ -454,7 +454,7 @@ cmGlobalUnixMakefileGenerator3
|
||||
bool check_relink)
|
||||
{
|
||||
// Get the relative path to the subdirectory from the top.
|
||||
std::string makeTarget = lg->GetMakefile()->GetCurrentBinaryDirectory();
|
||||
std::string makeTarget = lg->GetCurrentBinaryDirectory();
|
||||
makeTarget += "/";
|
||||
makeTarget += pass;
|
||||
|
||||
@@ -534,7 +534,7 @@ cmGlobalUnixMakefileGenerator3
|
||||
}
|
||||
|
||||
// Begin the directory-level rules section.
|
||||
std::string dir = lg->GetMakefile()->GetCurrentBinaryDirectory();
|
||||
std::string dir = lg->GetCurrentBinaryDirectory();
|
||||
dir = lg->Convert(dir, cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKERULE);
|
||||
lg->WriteDivider(ruleFileStream);
|
||||
|
||||
Reference in New Issue
Block a user