mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Refactor: Use cmStrCat to construct error strings
Replace string construction using std::stringstream with cmStrCat and cmWrap.
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#include "cmTargetCompileOptionsCommand.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "cmListFileCache.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmMessageType.h"
|
||||
@@ -21,10 +19,10 @@ bool cmTargetCompileOptionsCommand::InitialPass(
|
||||
void cmTargetCompileOptionsCommand::HandleMissingTarget(
|
||||
const std::string& name)
|
||||
{
|
||||
std::ostringstream e;
|
||||
e << "Cannot specify compile options for target \"" << name
|
||||
<< "\" which is not built by this project.";
|
||||
this->Makefile->IssueMessage(MessageType::FATAL_ERROR, e.str());
|
||||
this->Makefile->IssueMessage(
|
||||
MessageType::FATAL_ERROR,
|
||||
cmStrCat("Cannot specify compile options for target \"", name,
|
||||
"\" which is not built by this project."));
|
||||
}
|
||||
|
||||
std::string cmTargetCompileOptionsCommand::Join(
|
||||
|
||||
Reference in New Issue
Block a user