Refactor WINDOWS_EXPORT_ALL_SYMBOLS implementation

Use `cmGeneratorTarget::ModuleDefinitionInfo` to combine the
implementation of `WINDOWS_EXPORT_ALL_SYMBOLS` with that of using a
`.def` file as a source.  Only one of these could be used within a
single target before anyway.
This commit is contained in:
Brad King
2017-03-09 15:56:30 -05:00
parent 25d261efa7
commit f36eaf6a6e
11 changed files with 90 additions and 137 deletions
+1 -4
View File
@@ -750,10 +750,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
}
// maybe create .def file from list of objects
if (this->GeneratorTarget->GetType() == cmStateEnums::SHARED_LIBRARY &&
this->Makefile->IsOn("CMAKE_SUPPORT_WINDOWS_EXPORT_ALL_SYMBOLS")) {
this->GenDefFile(real_link_commands, linkFlags);
}
this->GenDefFile(real_link_commands);
std::string manifests = this->GetManifests();