From 97ef91d57b46f43afb0c5474a091b9b9fd424b29 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 27 Jan 2009 10:26:55 -0500 Subject: [PATCH] BUG: fix for 7845, idl files compile even with headerfile only on --- Source/cmLocalVisualStudio7Generator.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 2c92579f7a..578a4d813b 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1302,11 +1302,10 @@ cmLocalVisualStudio7GeneratorFCInfo needForceLang = true; lang = sourceLang; } - // If lang is set, the compiler will generate code automatically. // If HEADER_FILE_ONLY is set, we must suppress this generation in // the project file fc.ExcludedFromBuild = - (lang && sf.GetPropertyAsBool("HEADER_FILE_ONLY")); + (sf.GetPropertyAsBool("HEADER_FILE_ONLY")); if(fc.ExcludedFromBuild) { needfc = true;