summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-07 20:24:15 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:35 (GMT)
commitf0ad6631adb7cd364e2bcf5e8738c697c902e0ad (patch)
treeb1c2cfe5449bcb78cb6aad65ce685b6e331682da /Source/cmake.h
parent270eb96df05b93023cdd3d3a186b44b4ece1d655 (diff)
downloadCMake-f0ad6631adb7cd364e2bcf5e8738c697c902e0ad.zip
CMake-f0ad6631adb7cd364e2bcf5e8738c697c902e0ad.tar.gz
CMake-f0ad6631adb7cd364e2bcf5e8738c697c902e0ad.tar.bz2
Directories: Take strings when setting directories
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 1b81520..933502a 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -110,12 +110,12 @@ class cmake
* CMakeLists files by recursing up the tree starting at the StartDirectory
* and going up until it reaches the HomeDirectory.
*/
- void SetHomeDirectory(const char* dir);
+ void SetHomeDirectory(const std::string& dir);
const char* GetHomeDirectory() const
{
return this->cmHomeDirectory.c_str();
}
- void SetHomeOutputDirectory(const char* lib);
+ void SetHomeOutputDirectory(const std::string& lib);
const char* GetHomeOutputDirectory() const
{
return this->HomeOutputDirectory.c_str();
@@ -130,7 +130,7 @@ class cmake
* recursing up the tree starting at the StartDirectory and going up until
* it reaches the HomeDirectory.
*/
- void SetStartDirectory(const char* dir)
+ void SetStartDirectory(const std::string& dir)
{
this->cmStartDirectory = dir;
cmSystemTools::ConvertToUnixSlashes(this->cmStartDirectory);
@@ -139,7 +139,7 @@ class cmake
{
return this->cmStartDirectory.c_str();
}
- void SetStartOutputDirectory(const char* lib)
+ void SetStartOutputDirectory(const std::string& lib)
{
this->StartOutputDirectory = lib;
cmSystemTools::ConvertToUnixSlashes(this->StartOutputDirectory);