summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx4
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx16
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h2
3 files changed, 11 insertions, 11 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index d9927a3..848ffa5 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -138,7 +138,7 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile()
depends,
no_commands);
- lg->WriteMakeVariables(makefileStream);
+ lg->WriteMakeVariables(makefileStream, cmLocalGenerator::HOME_OUTPUT);
lg->WriteSpecialTargetsTop(makefileStream);
@@ -205,7 +205,7 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile2()
"The main recursive all target", "all",
no_commands, no_commands);
- lg->WriteMakeVariables(makefileStream);
+ lg->WriteMakeVariables(makefileStream,cmLocalGenerator::HOME_OUTPUT);
// write the target convenience rules
unsigned int i;
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index fe303a7..0b85b9a 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -353,7 +353,7 @@ cmLocalUnixMakefileGenerator3
}
this->WriteDisclaimer(ruleFileStream);
- this->WriteMakeVariables(ruleFileStream);
+ this->WriteMakeVariables(ruleFileStream, HOME_OUTPUT);
// write the custom commands for this target
std::vector<std::string> cleanFiles;
@@ -791,7 +791,7 @@ cmLocalUnixMakefileGenerator3
return;
}
this->WriteDisclaimer(ruleFileStream);
- this->WriteMakeVariables(ruleFileStream);
+ this->WriteMakeVariables(ruleFileStream, HOME_OUTPUT);
ruleFileStream
<< "# Utility rule file for " << target.GetName() << ".\n\n";
@@ -955,7 +955,7 @@ void cmLocalUnixMakefileGenerator3::WriteDivider(std::ostream& os)
//----------------------------------------------------------------------------
void
cmLocalUnixMakefileGenerator3
-::WriteMakeVariables(std::ostream& makefileStream)
+::WriteMakeVariables(std::ostream& makefileStream, RelativeRoot root)
{
this->WriteDivider(makefileStream);
makefileStream
@@ -992,13 +992,13 @@ cmLocalUnixMakefileGenerator3
makefileStream
<< "# The CMake executable.\n"
<< "CMAKE_COMMAND = "
- << this->Convert(cmakecommand.c_str(),START_OUTPUT,MAKEFILE).c_str()
+ << this->Convert(cmakecommand.c_str(), root, MAKEFILE).c_str()
<< "\n"
<< "\n";
makefileStream
<< "# The command to remove a file.\n"
<< "RM = "
- << this->Convert(cmakecommand.c_str(),START_OUTPUT,SHELL).c_str()
+ << this->Convert(cmakecommand.c_str(),root,SHELL).c_str()
<< " -E remove -f\n"
<< "\n";
@@ -1015,13 +1015,13 @@ cmLocalUnixMakefileGenerator3
makefileStream
<< "# The top-level source directory on which CMake was run.\n"
<< "CMAKE_SOURCE_DIR = "
- << this->Convert(m_Makefile->GetHomeDirectory(), START_OUTPUT, SHELL)
+ << this->Convert(m_Makefile->GetHomeDirectory(), root, SHELL)
<< "\n"
<< "\n";
makefileStream
<< "# The top-level build directory on which CMake was run.\n"
<< "CMAKE_BINARY_DIR = "
- << this->Convert(m_Makefile->GetHomeOutputDirectory(), START_OUTPUT, SHELL)
+ << this->Convert(m_Makefile->GetHomeOutputDirectory(), root, SHELL)
<< "\n"
<< "\n";
}
@@ -2780,7 +2780,7 @@ void cmLocalUnixMakefileGenerator3::WriteLocalMakefile()
}
this->WriteDisclaimer(ruleFileStream);
- this->WriteMakeVariables(ruleFileStream);
+ this->WriteMakeVariables(ruleFileStream, START_OUTPUT);
this->WriteSpecialTargetsTop(ruleFileStream);
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index 8ba857d..df27dad 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -64,7 +64,7 @@ public:
const std::vector<std::string>& commands);
// write the main variables used by the makefiles
- void WriteMakeVariables(std::ostream& makefileStream);
+ void WriteMakeVariables(std::ostream& makefileStream, RelativeRoot root);
// write a comment line #====... in the stream
void WriteDivider(std::ostream& os);