summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-07 20:32:48 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:32 (GMT)
commit30bc251b65e9deb39c2cb8a785bd98c8d707d508 (patch)
tree254390fb6b653298e2ebc0db6f97e11783c770da /Source
parent77f60392d93f41a8828d3db1d7b76d45f1535d07 (diff)
downloadCMake-30bc251b65e9deb39c2cb8a785bd98c8d707d508.zip
CMake-30bc251b65e9deb39c2cb8a785bd98c8d707d508.tar.gz
CMake-30bc251b65e9deb39c2cb8a785bd98c8d707d508.tar.bz2
stringapi: Use strings for output names in AddCustomCommandToOutput
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx2
-rw-r--r--Source/cmMakefile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 7215e76..8b1f0ba 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1102,7 +1102,7 @@ cmMakefile::UpdateOutputToSourceMap(std::string const& output,
//----------------------------------------------------------------------------
cmSourceFile*
-cmMakefile::AddCustomCommandToOutput(const char* output,
+cmMakefile::AddCustomCommandToOutput(const std::string& output,
const std::vector<std::string>& depends,
const char* main_dependency,
const cmCustomCommandLines& commandLines,
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index aa25f09..e165fd8 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -183,7 +183,7 @@ public:
bool replace = false,
bool escapeOldStyle = true);
cmSourceFile* AddCustomCommandToOutput(
- const char* output,
+ const std::string& output,
const std::vector<std::string>& depends,
const char* main_dependency,
const cmCustomCommandLines& commandLines,