summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-09 17:03:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-09 17:03:41 (GMT)
commit63e62376002b4c70c5091a740151d976bc43eb4d (patch)
tree33e0cbbacd8a8e83820fd47520d2ce94ff28d17f /Source/cmMakefile.cxx
parent26a6b4bc01a49768e5b3de54abc862a94e0647b6 (diff)
downloadCMake-63e62376002b4c70c5091a740151d976bc43eb4d.zip
CMake-63e62376002b4c70c5091a740151d976bc43eb4d.tar.gz
CMake-63e62376002b4c70c5091a740151d976bc43eb4d.tar.bz2
BUG: fix bug where custom command generated .h files do not get the header_file_only flag set
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 77bf08d..c03254a 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1968,8 +1968,10 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
if ( ext.length() && ext[0] == '.' )
{
ext = ext.substr(1);
- }
- file.SetName(name_no_ext.c_str(), path.c_str(), ext.c_str(), false);
+ }
+ bool headerFile = !(std::find( m_HeaderFileExtensions.begin(), m_HeaderFileExtensions.end(), ext ) ==
+ m_HeaderFileExtensions.end());
+ file.SetName(name_no_ext.c_str(), path.c_str(), ext.c_str(), headerFile);
}
else
{