summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-28 13:21:30 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-06-28 13:21:30 (GMT)
commit5ba65d0aa105e0bd015b632b9c34a85ce79ca32d (patch)
treeab77a05701d1ad6ea1fd213c399e88f00db77d3b /Source
parentc24d201c3912d04c8b55dd168fff2ae7f9adb390 (diff)
downloadCMake-5ba65d0aa105e0bd015b632b9c34a85ce79ca32d.zip
CMake-5ba65d0aa105e0bd015b632b9c34a85ce79ca32d.tar.gz
CMake-5ba65d0aa105e0bd015b632b9c34a85ce79ca32d.tar.bz2
bug fix for aux src dirs
Diffstat (limited to 'Source')
-rw-r--r--Source/cmAuxSourceDirectoryCommand.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx
index 7562833..659cb59 100644
--- a/Source/cmAuxSourceDirectoryCommand.cxx
+++ b/Source/cmAuxSourceDirectoryCommand.cxx
@@ -32,6 +32,14 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar
std::string tdir = m_Makefile->GetCurrentDirectory();
tdir += "/";
tdir += templateDirectory;
+
+ // was the list already populated
+ const char *def = m_Makefile->GetDefinition(args[1].c_str());
+ if (def)
+ {
+ sourceListValue = def;
+ }
+
// Load all the files in the directory
cmDirectory dir;
if(dir.Load(tdir.c_str()))