summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-28 17:42:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-08-28 17:42:43 (GMT)
commit6f7c96fb178a290934b5b91c919ddff143d8b542 (patch)
tree4f7b80f56fd419a829d6ccb282b833604efa83f7 /Source/cmMakefile.cxx
parentc549deed7fc6dec2c3f5f3ab5f9ded1acb916239 (diff)
parentc8fd23ec6f33eef8cf11d81938c379590080bd19 (diff)
downloadCMake-6f7c96fb178a290934b5b91c919ddff143d8b542.zip
CMake-6f7c96fb178a290934b5b91c919ddff143d8b542.tar.gz
CMake-6f7c96fb178a290934b5b91c919ddff143d8b542.tar.bz2
Merge topic 'mk-directory'
c8fd23ec6f cmMakefile: return directories as const std::string& Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2311
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 9e14917..6127b57 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1635,14 +1635,14 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
}
}
-const char* cmMakefile::GetCurrentSourceDirectory() const
+const std::string& cmMakefile::GetCurrentSourceDirectory() const
{
- return this->StateSnapshot.GetDirectory().GetCurrentSource().c_str();
+ return this->StateSnapshot.GetDirectory().GetCurrentSource();
}
-const char* cmMakefile::GetCurrentBinaryDirectory() const
+const std::string& cmMakefile::GetCurrentBinaryDirectory() const
{
- return this->StateSnapshot.GetDirectory().GetCurrentBinary().c_str();
+ return this->StateSnapshot.GetDirectory().GetCurrentBinary();
}
std::vector<cmTarget*> cmMakefile::GetImportedTargets() const