summaryrefslogtreecommitdiffstats
path: root/Source/cmDSWWriter.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-09 15:53:32 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-09 15:53:32 (GMT)
commit5fc83004761394476f22d38fb75ed69bd6d7b16d (patch)
tree98765948d265b50366e992f1e40883fb0c7a5381 /Source/cmDSWWriter.cxx
parent60507258c786eb7b04f9248825659b47dc617c63 (diff)
downloadCMake-5fc83004761394476f22d38fb75ed69bd6d7b16d.zip
CMake-5fc83004761394476f22d38fb75ed69bd6d7b16d.tar.gz
CMake-5fc83004761394476f22d38fb75ed69bd6d7b16d.tar.bz2
ENH: Added utility dependency support. Now a project can depend on other executables as well as link libraries.
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r--Source/cmDSWWriter.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx
index 6534570..a61e2e9 100644
--- a/Source/cmDSWWriter.cxx
+++ b/Source/cmDSWWriter.cxx
@@ -130,7 +130,7 @@ void cmDSWMakefile::WriteProject(std::ostream& fout,
{
for(;i!= end; ++i)
{
- if (strcmp(i->c_str(),dspname))
+ if(*i != dspname)
{
fout << "Begin Project Dependency\n";
fout << "Project_Dep_Name " << *i << "\n";
@@ -138,6 +138,19 @@ void cmDSWMakefile::WriteProject(std::ostream& fout,
}
}
}
+
+ // write utility dependencies.
+ i = project->GetMakefile()->GetUtilities().begin();
+ end = project->GetMakefile()->GetUtilities().end();
+ for(;i!= end; ++i)
+ {
+ if(*i != dspname)
+ {
+ fout << "Begin Project Dependency\n";
+ fout << "Project_Dep_Name " << *i << "\n";
+ fout << "End Project Dependency\n";
+ }
+ }
fout << "}}}\n\n";
}