浏览代码

BUG: fix for 7845, idl files compile even with headerfile only on

Bill Hoffman 16 年之前
父节点
当前提交
97ef91d57b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Source/cmLocalVisualStudio7Generator.cxx

+ 1 - 2
Source/cmLocalVisualStudio7Generator.cxx

@@ -1302,11 +1302,10 @@ cmLocalVisualStudio7GeneratorFCInfo
       needForceLang = true;
       needForceLang = true;
       lang = sourceLang;
       lang = sourceLang;
       }
       }
-    // If lang is set, the compiler will generate code automatically.
     // If HEADER_FILE_ONLY is set, we must suppress this generation in
     // If HEADER_FILE_ONLY is set, we must suppress this generation in
     // the project file
     // the project file
     fc.ExcludedFromBuild =
     fc.ExcludedFromBuild =
-      (lang && sf.GetPropertyAsBool("HEADER_FILE_ONLY"));
+      (sf.GetPropertyAsBool("HEADER_FILE_ONLY"));
     if(fc.ExcludedFromBuild)
     if(fc.ExcludedFromBuild)
       {
       {
       needfc = true;
       needfc = true;