diff options
author | Amitha Perera <perera@cs.rpi.edu> | 2001-12-28 20:58:21 (GMT) |
---|---|---|
committer | Amitha Perera <perera@cs.rpi.edu> | 2001-12-28 20:58:21 (GMT) |
commit | a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03 (patch) | |
tree | 351a13a7917d77a1b25bc863bc6f1382404191e8 /Source/cmUnixMakefileGenerator.cxx | |
parent | 18592092822ea7c450cafa3335c7ffc7537f4f5d (diff) | |
download | CMake-a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03.zip CMake-a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03.tar.gz CMake-a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03.tar.bz2 |
BUG: Don't generate build rules for header files.
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 "; |