diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-06-27 15:57:09 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-06-27 15:57:09 -0400 |
commit | 44a7cd55ff126412d8ba8b82739a1bee132c62a1 (patch) | |
tree | 533de5563331136062407c254c05024bb5b91632 /Source/cmAuxSourceDirectoryCommand.cxx | |
parent | a1a05a5fbcd0d34aa5ab0dde7da2ba4c5082916a (diff) | |
download | cmake-44a7cd55ff126412d8ba8b82739a1bee132c62a1.tar.gz |
removed all source lists from the system and made them vectors. Also appended _CMAKE_PATH to the end of the automatic cache entries for executables and libraries. Odds of all these changes working are slim but cmake builds and passes all its tests. VTK40 starts building
Diffstat (limited to 'Source/cmAuxSourceDirectoryCommand.cxx')
-rw-r--r-- | Source/cmAuxSourceDirectoryCommand.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index ad79acd258..7562833f51 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/Source/cmAuxSourceDirectoryCommand.cxx @@ -26,6 +26,7 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar return false; } + std::string sourceListValue; std::string templateDirectory = args[0]; m_Makefile->AddExtraDirectory(templateDirectory.c_str()); std::string tdir = m_Makefile->GetCurrentDirectory(); @@ -61,11 +62,17 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar m_Makefile->GetSourceExtensions(), m_Makefile->GetHeaderExtensions()); cmfile.SetIsAnAbstractClass(false); - m_Makefile->AddSource(cmfile,args[1].c_str()); + m_Makefile->AddSource(cmfile); + if (sourceListValue.size() > 0) + { + sourceListValue += ";"; + } + sourceListValue += cmfile.GetSourceName(); } } } } + m_Makefile->AddDefinition(args[1].c_str(), sourceListValue.c_str()); return true; } |