mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-22 07:25:02 +08:00
cmGlobalVisualStudioGenerator: Simplify __create_def command generation
This commit is contained in:
@@ -843,9 +843,8 @@ void cmGlobalVisualStudioGenerator::AddSymbolExportCommand(
|
|||||||
std::string obj_dir_expanded = obj_dir;
|
std::string obj_dir_expanded = obj_dir;
|
||||||
cmSystemTools::ReplaceString(obj_dir_expanded, this->GetCMakeCFGIntDir(),
|
cmSystemTools::ReplaceString(obj_dir_expanded, this->GetCMakeCFGIntDir(),
|
||||||
configName.c_str());
|
configName.c_str());
|
||||||
std::string objs_file = obj_dir_expanded;
|
cmSystemTools::MakeDirectory(obj_dir_expanded);
|
||||||
cmSystemTools::MakeDirectory(objs_file.c_str());
|
std::string const objs_file = obj_dir_expanded + "/objects.txt";
|
||||||
objs_file += "/objects.txt";
|
|
||||||
cmdl.push_back(objs_file);
|
cmdl.push_back(objs_file);
|
||||||
cmGeneratedFileStream fout(objs_file.c_str());
|
cmGeneratedFileStream fout(objs_file.c_str());
|
||||||
if (!fout) {
|
if (!fout) {
|
||||||
|
Reference in New Issue
Block a user