diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-05-22 13:16:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-22 14:51:06 (GMT) |
commit | e884b1b69365e9dc15fff572a6ff2237c1bb7644 (patch) | |
tree | bad78de74a06120f8bcaa6e5966f38f1a5e6e180 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 01b6a2c4ee8930e60459b46b4d751148ce28d5a9 (diff) | |
download | CMake-e884b1b69365e9dc15fff572a6ff2237c1bb7644.zip CMake-e884b1b69365e9dc15fff572a6ff2237c1bb7644.tar.gz CMake-e884b1b69365e9dc15fff572a6ff2237c1bb7644.tar.bz2 |
cmSystemTools::Error(): remove const char* overload
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 6a08840..04e3d12 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -501,8 +501,11 @@ void cmLocalUnixMakefileGenerator3::WriteMakeRule( { // Make sure there is a target. if (target.empty()) { - cmSystemTools::Error("No target for WriteMakeRule! called with comment: ", - comment); + std::string err("No target for WriteMakeRule! called with comment: "); + if (comment) { + err += comment; + } + cmSystemTools::Error(err); return; } |