summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-21 01:32:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-21 01:32:42 (GMT)
commit03cee03f679d0679b63fe35ee177571ee52cabcb (patch)
treee6593e4e86b7d5db842e6003ad763ee11ae904c0
parentcf23679d72e539f63c556f54d6ae4f486e990421 (diff)
downloadCMake-03cee03f679d0679b63fe35ee177571ee52cabcb.zip
CMake-03cee03f679d0679b63fe35ee177571ee52cabcb.tar.gz
CMake-03cee03f679d0679b63fe35ee177571ee52cabcb.tar.bz2
ENH: do not compile header files
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 03bc74b..6592bc2 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1015,7 +1015,8 @@ void cmLocalVisualStudio7Generator::WriteGroup(const cmSourceGroup *sg, cmTarget
std::string compileFlags;
std::string additionalDeps;
sourceName = (*sf)->GetSourceName();
- if(sourceName.find("/") != sourceName.npos)
+ if(!(*sf)->GetPropertyAsBool("HEADER_FILE_ONLY" )
+ && sourceName.find("/") != sourceName.npos)
{
cmSystemTools::ReplaceString(sourceName, "/", "_");
sourceName += ".obj";