cmake: Out-of-line Home and Start directory methods.
This commit is contained in:
parent
0ee3ccb3b0
commit
6241253a4b
|
@ -1112,12 +1112,44 @@ void cmake::SetHomeDirectory(const std::string& dir)
|
||||||
cmSystemTools::ConvertToUnixSlashes(this->cmHomeDirectory);
|
cmSystemTools::ConvertToUnixSlashes(this->cmHomeDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* cmake::GetHomeDirectory() const
|
||||||
|
{
|
||||||
|
return this->cmHomeDirectory.c_str();
|
||||||
|
}
|
||||||
|
|
||||||
void cmake::SetHomeOutputDirectory(const std::string& dir)
|
void cmake::SetHomeOutputDirectory(const std::string& dir)
|
||||||
{
|
{
|
||||||
this->HomeOutputDirectory = dir;
|
this->HomeOutputDirectory = dir;
|
||||||
cmSystemTools::ConvertToUnixSlashes(this->HomeOutputDirectory);
|
cmSystemTools::ConvertToUnixSlashes(this->HomeOutputDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* cmake::GetHomeOutputDirectory() const
|
||||||
|
{
|
||||||
|
return this->HomeOutputDirectory.c_str();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* cmake::GetStartDirectory() const
|
||||||
|
{
|
||||||
|
return this->cmStartDirectory.c_str();
|
||||||
|
}
|
||||||
|
|
||||||
|
void cmake::SetStartDirectory(const std::string& dir)
|
||||||
|
{
|
||||||
|
this->cmStartDirectory = dir;
|
||||||
|
cmSystemTools::ConvertToUnixSlashes(this->cmStartDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* cmake::GetStartOutputDirectory() const
|
||||||
|
{
|
||||||
|
return this->StartOutputDirectory.c_str();
|
||||||
|
}
|
||||||
|
|
||||||
|
void cmake::SetStartOutputDirectory(const std::string& dir)
|
||||||
|
{
|
||||||
|
this->StartOutputDirectory = dir;
|
||||||
|
cmSystemTools::ConvertToUnixSlashes(this->StartOutputDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
void cmake::SetGlobalGenerator(cmGlobalGenerator *gg)
|
void cmake::SetGlobalGenerator(cmGlobalGenerator *gg)
|
||||||
{
|
{
|
||||||
if(!gg)
|
if(!gg)
|
||||||
|
|
|
@ -113,15 +113,9 @@ class cmake
|
||||||
* and going up until it reaches the HomeDirectory.
|
* and going up until it reaches the HomeDirectory.
|
||||||
*/
|
*/
|
||||||
void SetHomeDirectory(const std::string& dir);
|
void SetHomeDirectory(const std::string& dir);
|
||||||
const char* GetHomeDirectory() const
|
const char* GetHomeDirectory() const;
|
||||||
{
|
|
||||||
return this->cmHomeDirectory.c_str();
|
|
||||||
}
|
|
||||||
void SetHomeOutputDirectory(const std::string& dir);
|
void SetHomeOutputDirectory(const std::string& dir);
|
||||||
const char* GetHomeOutputDirectory() const
|
const char* GetHomeOutputDirectory() const;
|
||||||
{
|
|
||||||
return this->HomeOutputDirectory.c_str();
|
|
||||||
}
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
|
@ -132,24 +126,10 @@ class cmake
|
||||||
* recursing up the tree starting at the StartDirectory and going up until
|
* recursing up the tree starting at the StartDirectory and going up until
|
||||||
* it reaches the HomeDirectory.
|
* it reaches the HomeDirectory.
|
||||||
*/
|
*/
|
||||||
void SetStartDirectory(const std::string& dir)
|
void SetStartDirectory(const std::string& dir);
|
||||||
{
|
const char* GetStartDirectory() const;
|
||||||
this->cmStartDirectory = dir;
|
void SetStartOutputDirectory(const std::string& dir);
|
||||||
cmSystemTools::ConvertToUnixSlashes(this->cmStartDirectory);
|
const char* GetStartOutputDirectory() const;
|
||||||
}
|
|
||||||
const char* GetStartDirectory() const
|
|
||||||
{
|
|
||||||
return this->cmStartDirectory.c_str();
|
|
||||||
}
|
|
||||||
void SetStartOutputDirectory(const std::string& dir)
|
|
||||||
{
|
|
||||||
this->StartOutputDirectory = dir;
|
|
||||||
cmSystemTools::ConvertToUnixSlashes(this->StartOutputDirectory);
|
|
||||||
}
|
|
||||||
const char* GetStartOutputDirectory() const
|
|
||||||
{
|
|
||||||
return this->StartOutputDirectory.c_str();
|
|
||||||
}
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue