diff options
author | Amitha Perera <perera@cs.rpi.edu> | 2001-07-16 22:40:42 (GMT) |
---|---|---|
committer | Amitha Perera <perera@cs.rpi.edu> | 2001-07-16 22:40:42 (GMT) |
commit | e169953e923907706439c60033ce983729c2e404 (patch) | |
tree | f12edb22a3b64f621ea7d049312ec1a9102ee54e /Source/cmSourceFilesCommand.cxx | |
parent | fdfe7a357e38f40d768e24412f7e49b7880c0fcc (diff) | |
download | CMake-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.cxx | 8 |
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()); } |