mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-08 07:37:33 +00:00
Refactor: Use raw string literals instead of escaping
This commit is contained in:
@@ -214,7 +214,7 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args,
|
||||
cmsys::RegularExpression vx(
|
||||
R"(^([0-9]+(\.[0-9]+(\.[0-9]+(\.[0-9]+)?)?)?)?$)");
|
||||
if (!vx.find(version)) {
|
||||
std::string e = "VERSION \"" + version + "\" format invalid.";
|
||||
std::string e = R"(VERSION ")" + version + R"(" format invalid.)";
|
||||
this->Makefile->IssueMessage(MessageType::FATAL_ERROR, e);
|
||||
cmSystemTools::SetFatalErrorOccured();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user