diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-08-18 12:22:11 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2019-08-18 12:22:11 (GMT) |
commit | da26b3be8948471dd2320d1e44af9eb5dfaa0f6a (patch) | |
tree | d3e861dde3c600440154767d88a90a13af5abc01 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 06e32a089df03c158eaee7525de3ac1be25d8136 (diff) | |
download | CMake-da26b3be8948471dd2320d1e44af9eb5dfaa0f6a.zip CMake-da26b3be8948471dd2320d1e44af9eb5dfaa0f6a.tar.gz CMake-da26b3be8948471dd2320d1e44af9eb5dfaa0f6a.tar.bz2 |
avoid adding multiple consecutive string literals to std::string
While at it change some single character additions to be of type char.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 3d76396..893e14e 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -98,8 +98,7 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets() force_commands.push_back(force_command); std::string no_main_dependency; std::string force = this->GetCurrentBinaryDirectory(); - force += "/CMakeFiles"; - force += "/"; + force += "/CMakeFiles/"; force += l->GetName(); force += "_force"; if (cmSourceFile* file = this->Makefile->AddCustomCommandToOutput( @@ -147,8 +146,7 @@ void cmLocalVisualStudio7Generator::WriteStampFiles() std::string stampName = this->GetCurrentBinaryDirectory(); stampName += "/CMakeFiles"; cmSystemTools::MakeDirectory(stampName.c_str()); - stampName += "/"; - stampName += "generate.stamp"; + stampName += "/generate.stamp"; cmsys::ofstream stamp(stampName.c_str()); stamp << "# CMake generation timestamp file for this directory.\n"; |