diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-02-06 16:02:10 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-02-06 16:02:10 (GMT) |
commit | 65baaa0e37e114cf8e505c10d80ec3efaf3887ad (patch) | |
tree | 88d06d2be424e61c63c45b360f29a86e3a03f8a3 /Source/cmTryRunCommand.cxx | |
parent | 062cfd991faac000d484c74e5af7d65726c655dc (diff) | |
download | CMake-65baaa0e37e114cf8e505c10d80ec3efaf3887ad.zip CMake-65baaa0e37e114cf8e505c10d80ec3efaf3887ad.tar.gz CMake-65baaa0e37e114cf8e505c10d80ec3efaf3887ad.tar.bz2 |
cmSystemTools::RunSingleCommand: Accept std::string argument
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r-- | Source/cmTryRunCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index c57aabd..fff8f8e 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -189,8 +189,8 @@ void cmTryRunCommand::RunExecutable(const std::string& runArgs, finalCommand += runArgs; } bool worked = cmSystemTools::RunSingleCommand( - finalCommand.c_str(), out, out, &retVal, nullptr, - cmSystemTools::OUTPUT_NONE, cmDuration::zero()); + finalCommand, out, out, &retVal, nullptr, cmSystemTools::OUTPUT_NONE, + cmDuration::zero()); // set the run var char retChar[16]; const char* retStr; |