summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-10 17:53:57 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-12 14:44:00 (GMT)
commitd45e7f34611cd678bdda29d7d2b2ff4ce1abbce7 (patch)
tree8ebbe10ac12a7d52520ee22b01c6a4391e2dd319 /Source/cmCustomCommand.h
parentcb8f87f6229359790956a6640639bbe6b8c346f7 (diff)
downloadCMake-d45e7f34611cd678bdda29d7d2b2ff4ce1abbce7.zip
CMake-d45e7f34611cd678bdda29d7d2b2ff4ce1abbce7.tar.gz
CMake-d45e7f34611cd678bdda29d7d2b2ff4ce1abbce7.tar.bz2
cmCustomCommand: Return std::string from GetWorkingDirectory
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index 67c305e..b5d7e62 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -42,12 +42,13 @@ public:
/** Get the output file produced by the command. */
const std::vector<std::string>& GetOutputs() const;
- /** Get the working directory. */
- const char* GetWorkingDirectory() const;
-
/** Get the vector that holds the list of dependencies. */
const std::vector<std::string>& GetDepends() const;
+ /** Get the working directory. */
+ std::string const& GetWorkingDirectory() const
+ { return this->WorkingDirectory; }
+
/** Get the list of command lines. */
const cmCustomCommandLines& GetCommandLines() const;