浏览代码

cmLocalVisualStudio7Generator: Clarify condition for target that compiles

Brad King 8 年之前
父节点
当前提交
07e1a74361
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmLocalVisualStudio7Generator.cxx

+ 1 - 1
Source/cmLocalVisualStudio7Generator.cxx

@@ -637,7 +637,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
     configType = projectType;
   }
   std::string flags;
-  if (strcmp(configType, "10") != 0) {
+  if (target->GetType() <= cmStateEnums::OBJECT_LIBRARY) {
     const std::string& linkLanguage =
       (this->FortranProject ? std::string("Fortran")
                             : target->GetLinkerLanguage(configName));