diff options
author | Brad King <brad.king@kitware.com> | 2016-07-22 13:17:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-07-22 13:17:48 (GMT) |
commit | 1fc340f0d4d9450d82631c876ab0f85bae220242 (patch) | |
tree | c6ea90ba4612f1ff6a1c83cd7acbad31ce79fdaa /Source | |
parent | 3e7689ec392e6e22f60f9568181629077f74c4b6 (diff) | |
parent | 13a6ff31becea16d567b23abc68bfa8aa75365ce (diff) | |
download | CMake-1fc340f0d4d9450d82631c876ab0f85bae220242.zip CMake-1fc340f0d4d9450d82631c876ab0f85bae220242.tar.gz CMake-1fc340f0d4d9450d82631c876ab0f85bae220242.tar.bz2 |
Merge topic 'windows-export-all-fix-objlib'
13a6ff31 VS: Fix WINDOWS_EXPORT_ALL_SYMBOLS for object libraries
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 1bec581..7bdd74d 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -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()); |