summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";