summaryrefslogtreecommitdiffstats
path: root/Source/cmBorlandMakefileGenerator.cxx
diff options
context:
space:
mode:
authorAmitha Perera <perera@cs.rpi.edu>2001-12-28 20:58:21 (GMT)
committerAmitha Perera <perera@cs.rpi.edu>2001-12-28 20:58:21 (GMT)
commita9cdcba66063fcc00e9687ced74a5fb9dfdaaf03 (patch)
tree351a13a7917d77a1b25bc863bc6f1382404191e8 /Source/cmBorlandMakefileGenerator.cxx
parent18592092822ea7c450cafa3335c7ffc7537f4f5d (diff)
downloadCMake-a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03.zip
CMake-a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03.tar.gz
CMake-a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03.tar.bz2
BUG: Don't generate build rules for header files.
Diffstat (limited to 'Source/cmBorlandMakefileGenerator.cxx')
-rw-r--r--Source/cmBorlandMakefileGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx
index ce70055..c3a8ac9 100644
--- a/Source/cmBorlandMakefileGenerator.cxx
+++ b/Source/cmBorlandMakefileGenerator.cxx
@@ -178,7 +178,11 @@ OutputBuildObjectFromSource(std::ostream& fout,
const cmSourceFile& source,
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());