summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-13 15:53:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-21 14:02:33 (GMT)
commit21c4ec4ffe1c40382f6b435ff49eade31e1137f2 (patch)
tree78765c635a6ffc68b697c3b87f113f398548cf25 /Source
parent24361a455a2a3bd904433ec3b0107493d29d98ba (diff)
downloadCMake-21c4ec4ffe1c40382f6b435ff49eade31e1137f2.zip
CMake-21c4ec4ffe1c40382f6b435ff49eade31e1137f2.tar.gz
CMake-21c4ec4ffe1c40382f6b435ff49eade31e1137f2.tar.bz2
cmGlobalVisualStudioGenerator: Simplify __create_def command generation
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index a073426..4e7d92a 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -843,9 +843,8 @@ void cmGlobalVisualStudioGenerator::AddSymbolExportCommand(
std::string obj_dir_expanded = obj_dir;
cmSystemTools::ReplaceString(obj_dir_expanded, this->GetCMakeCFGIntDir(),
configName.c_str());
- std::string objs_file = obj_dir_expanded;
- cmSystemTools::MakeDirectory(objs_file.c_str());
- objs_file += "/objects.txt";
+ cmSystemTools::MakeDirectory(obj_dir_expanded);
+ std::string const objs_file = obj_dir_expanded + "/objects.txt";
cmdl.push_back(objs_file);
cmGeneratedFileStream fout(objs_file.c_str());
if (!fout) {