diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-21 01:32:42 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-21 01:32:42 (GMT) |
commit | 03cee03f679d0679b63fe35ee177571ee52cabcb (patch) | |
tree | e6593e4e86b7d5db842e6003ad763ee11ae904c0 | |
parent | cf23679d72e539f63c556f54d6ae4f486e990421 (diff) | |
download | CMake-03cee03f679d0679b63fe35ee177571ee52cabcb.zip CMake-03cee03f679d0679b63fe35ee177571ee52cabcb.tar.gz CMake-03cee03f679d0679b63fe35ee177571ee52cabcb.tar.bz2 |
ENH: do not compile header files
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 3 |
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"; |