summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-06 16:02:10 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-06 16:02:10 (GMT)
commit65baaa0e37e114cf8e505c10d80ec3efaf3887ad (patch)
tree88d06d2be424e61c63c45b360f29a86e3a03f8a3 /Source/cmcmd.cxx
parent062cfd991faac000d484c74e5af7d65726c655dc (diff)
downloadCMake-65baaa0e37e114cf8e505c10d80ec3efaf3887ad.zip
CMake-65baaa0e37e114cf8e505c10d80ec3efaf3887ad.tar.gz
CMake-65baaa0e37e114cf8e505c10d80ec3efaf3887ad.tar.bz2
cmSystemTools::RunSingleCommand: Accept std::string argument
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index d20c5d2..4415ba6 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -826,7 +826,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
cmWrap('"', cmMakeRange(args).advance(3), '"', " ");
int retval = 0;
if (cmSystemTools::RunSingleCommand(
- command.c_str(), nullptr, nullptr, &retval, directory.c_str(),
+ command, nullptr, nullptr, &retval, directory.c_str(),
cmSystemTools::OUTPUT_PASSTHROUGH, cmDuration::zero())) {
return retval;
}