|
|
@@ -827,6 +827,7 @@ void cmGlobalVisualStudioGenerator::AddSymbolExportCommand(
|
|
|
cmSystemTools::Error("could not open ", objs_file.c_str());
|
|
|
return;
|
|
|
}
|
|
|
+ std::vector<std::string> objs;
|
|
|
for (std::vector<cmSourceFile const*>::const_iterator it =
|
|
|
objectSources.begin();
|
|
|
it != objectSources.end(); ++it) {
|
|
|
@@ -836,6 +837,12 @@ void cmGlobalVisualStudioGenerator::AddSymbolExportCommand(
|
|
|
// It must exist because we populated the mapping just above.
|
|
|
assert(!map_it->second.empty());
|
|
|
std::string objFile = obj_dir + map_it->second;
|
|
|
+ objs.push_back(objFile);
|
|
|
+ }
|
|
|
+ gt->UseObjectLibraries(objs, configName);
|
|
|
+ for (std::vector<std::string>::iterator it = objs.begin(); it != objs.end();
|
|
|
+ ++it) {
|
|
|
+ std::string objFile = *it;
|
|
|
// replace $(ConfigurationName) in the object names
|
|
|
cmSystemTools::ReplaceString(objFile, this->GetCMakeCFGIntDir(),
|
|
|
configName.c_str());
|