Merge topic 'vs-export-external-objects'

4dde0bc8 VS: Fix WINDOWS_EXPORT_ALL_SYMBOLS for external objects
This commit is contained in:
Brad King 2017-01-31 09:04:19 -05:00 committed by CMake Topic Stage
commit 5accbaccbc

View File

@ -856,6 +856,14 @@ void cmGlobalVisualStudioGenerator::AddSymbolExportCommand(
std::string objFile = obj_dir + map_it->second;
objs.push_back(objFile);
}
std::vector<cmSourceFile const*> externalObjectSources;
gt->GetExternalObjects(externalObjectSources, configName);
for (std::vector<cmSourceFile const*>::const_iterator it =
externalObjectSources.begin();
it != externalObjectSources.end(); ++it) {
objs.push_back((*it)->GetFullPath());
}
gt->UseObjectLibraries(objs, configName);
for (std::vector<std::string>::iterator it = objs.begin(); it != objs.end();
++it) {