summaryrefslogtreecommitdiffstats
path: root/Source/cmNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmNMakeMakefileGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx
index fca80a7..4e4b3ed 100644
--- a/Source/cmNMakeMakefileGenerator.cxx
+++ b/Source/cmNMakeMakefileGenerator.cxx
@@ -356,6 +356,10 @@ OutputBuildObjectFromSource(std::ostream& fout,
const char* extraCompileFlags,
bool shared)
{
+ // Header files shouldn't have build rules.
+ if(source.IsAHeaderFileOnly())
+ return;
+
std::string comment = "Build ";
std::string objectFile = std::string(shortName) +
this->GetOutputExtension(source.GetSourceExtension().c_str());