summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFilesCommand.cxx
diff options
context:
space:
mode:
authorAmitha Perera <perera@cs.rpi.edu>2001-07-16 22:40:42 (GMT)
committerAmitha Perera <perera@cs.rpi.edu>2001-07-16 22:40:42 (GMT)
commite169953e923907706439c60033ce983729c2e404 (patch)
treef12edb22a3b64f621ea7d049312ec1a9102ee54e /Source/cmSourceFilesCommand.cxx
parentfdfe7a357e38f40d768e24412f7e49b7880c0fcc (diff)
downloadCMake-e169953e923907706439c60033ce983729c2e404.zip
CMake-e169953e923907706439c60033ce983729c2e404.tar.gz
CMake-e169953e923907706439c60033ce983729c2e404.tar.bz2
ENH: Source and header file extensions are in variables in cmMakefile.
AUX_SOURCE_DIRECTORY will only add files that have a "source" extension.
Diffstat (limited to 'Source/cmSourceFilesCommand.cxx')
-rw-r--r--Source/cmSourceFilesCommand.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx
index bc39fc5..778c095 100644
--- a/Source/cmSourceFilesCommand.cxx
+++ b/Source/cmSourceFilesCommand.cxx
@@ -61,11 +61,15 @@ bool cmSourceFilesCommand::InitialPass(std::vector<std::string>& args)
(path.size() > 1 && path[1] == ':'))
{
file.SetName(cmSystemTools::GetFilenameName(copy.c_str()).c_str(),
- path.c_str());
+ path.c_str(),
+ m_Makefile->GetSourceExtensions(),
+ m_Makefile->GetHeaderExtensions());
}
else
{
- file.SetName(i->c_str(), m_Makefile->GetCurrentDirectory());
+ file.SetName(i->c_str(), m_Makefile->GetCurrentDirectory(),
+ m_Makefile->GetSourceExtensions(),
+ m_Makefile->GetHeaderExtensions());
}
m_Makefile->AddSource(file, args[0].c_str());
}