summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-05-18 13:44:28 (GMT)
committerBrad King <brad.king@kitware.com>2011-05-18 13:44:28 (GMT)
commitc45c60b24ff52d9435ceab0de027fbadac130a1f (patch)
treee4bc48a68cd02c19d03b99cf061c542d20f64322 /Source/cmSystemTools.h
parent7c5be5114c1c1adb26cfe7e8556187bf9bd8bd0a (diff)
downloadCMake-c45c60b24ff52d9435ceab0de027fbadac130a1f.zip
CMake-c45c60b24ff52d9435ceab0de027fbadac130a1f.tar.gz
CMake-c45c60b24ff52d9435ceab0de027fbadac130a1f.tar.bz2
run_compile_commands: Avoid extra stl vector conversion
The Sun compiler does not provide the proper vector constructor to initialize it from an iterator pair of a non-matching type. Extend the ParseUnixCommandLine API to provide a vector of the proper type so no conversion is needed.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 6f9147c..dfc6b7d 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -237,6 +237,8 @@ public:
/** Parse arguments out of a unix command line string. */
static void ParseUnixCommandLine(const char* command,
std::vector<std::string>& args);
+ static void ParseUnixCommandLine(const char* command,
+ std::vector<cmStdString>& args);
/** Compute an escaped version of the given argument for use in a
windows shell. See kwsys/System.h.in for details. */