Browse Source

Refactor: Use raw string literals instead of escaping

Alex Turbov 6 years ago
parent
commit
b1f387a7ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmProjectCommand.cxx

+ 1 - 1
Source/cmProjectCommand.cxx

@@ -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;