diff options
-rw-r--r-- | Source/cmMakefile.cxx | 6 |
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 { |