diff options
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 4e77293..ca4e089 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1594,7 +1594,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) + m_ObjectFileExtension; comment += objectFile + " From "; |