Просмотр исходного кода

VS: Do not produce WinMD file for OBJECT libraries (#15228)

They are implemented as static libraries for the IDE so treat them the
same.
Gilles Khouzam 11 лет назад
Родитель
Сommit
689cd0d43e
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Source/cmVisualStudio10TargetGenerator.cxx

+ 2 - 1
Source/cmVisualStudio10TargetGenerator.cxx

@@ -2036,7 +2036,8 @@ WriteMasmOptions(std::string const& configName,
 void
 cmVisualStudio10TargetGenerator::WriteLibOptions(std::string const& config)
 {
-  if(this->Target->GetType() != cmTarget::STATIC_LIBRARY)
+  if(this->Target->GetType() != cmTarget::STATIC_LIBRARY &&
+     this->Target->GetType() != cmTarget::OBJECT_LIBRARY)
     {
     return;
     }