diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-11-08 20:09:43 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-11-08 20:09:43 (GMT) |
commit | 05717b3dab73da8c2176f37cbe9c8c2814cf47f2 (patch) | |
tree | e44991b73d865c6d6bb8b934215ee2362d34b236 /Source/cmDSWWriter.cxx | |
parent | 03fd2f6dfa332d6fbd949221337a3624e6b6d185 (diff) | |
download | CMake-05717b3dab73da8c2176f37cbe9c8c2814cf47f2.zip CMake-05717b3dab73da8c2176f37cbe9c8c2814cf47f2.tar.gz CMake-05717b3dab73da8c2176f37cbe9c8c2814cf47f2.tar.bz2 |
a better fix maybe
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r-- | Source/cmDSWWriter.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx index 910e53d..e309679 100644 --- a/Source/cmDSWWriter.cxx +++ b/Source/cmDSWWriter.cxx @@ -162,10 +162,17 @@ void cmDSWWriter::WriteDSWFile(std::ostream& fout) for(cmTargets::const_iterator al = atgts.begin(); al != atgts.end(); ++al) { - if(al->second.IsInAll()) + if (al->second.IsInAll()) { - l->second.GetLinkLibraries().push_back( - cmTarget::LinkLibraries::value_type(al->first, cmTarget::GENERAL)); + if (al->second.GetType() == cmTarget::UTILITY) + { + l->second.AddUtility(al->first.c_str()); + } + else + { + l->second.GetLinkLibraries().push_back( + cmTarget::LinkLibraries::value_type(al->first, cmTarget::GENERAL)); + } } } } @@ -234,7 +241,7 @@ void cmDSWWriter::WriteProject(std::ostream& fout, // is the library part of this DSW ? If so add dependency const char* cacheValue = m_Makefile->GetDefinition(j->first.c_str()); - if(cacheValue || (strcmp(dspname, "ALL_BUILD") == 0)) + if(cacheValue) { fout << "Begin Project Dependency\n"; fout << "Project_Dep_Name " << j->first << "\n"; |