diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-08 19:44:12 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-08 19:44:12 (GMT) |
commit | 03fd2f6dfa332d6fbd949221337a3624e6b6d185 (patch) | |
tree | c78a4293432aa436bd753d2d1e8c2402f065b38d /Source/cmDSWWriter.cxx | |
parent | e17724279ea57a004551cf5214f913da424ed5f0 (diff) | |
download | CMake-03fd2f6dfa332d6fbd949221337a3624e6b6d185.zip CMake-03fd2f6dfa332d6fbd949221337a3624e6b6d185.tar.gz CMake-03fd2f6dfa332d6fbd949221337a3624e6b6d185.tar.bz2 |
make sure custom targets are in the ALL_BUILD
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r-- | Source/cmDSWWriter.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx index 6f7da03..910e53d 100644 --- a/Source/cmDSWWriter.cxx +++ b/Source/cmDSWWriter.cxx @@ -222,19 +222,19 @@ void cmDSWWriter::WriteProject(std::ostream& fout, fout << "{{{\n"; // insert Begin Project Dependency Project_Dep_Name project stuff here - cmTarget::LinkLibraries::const_iterator j, jend; - j = target.GetLinkLibraries().begin(); - jend = target.GetLinkLibraries().end(); - for(;j!= jend; ++j) + if (target.GetType() != cmTarget::STATIC_LIBRARY) { - if(j->first != dspname) + cmTarget::LinkLibraries::const_iterator j, jend; + j = target.GetLinkLibraries().begin(); + jend = target.GetLinkLibraries().end(); + for(;j!= jend; ++j) { - if (target.GetType() != cmTarget::STATIC_LIBRARY) - { + if(j->first != dspname) + { // is the library part of this DSW ? If so add dependency const char* cacheValue = m_Makefile->GetDefinition(j->first.c_str()); - if(cacheValue) + if(cacheValue || (strcmp(dspname, "ALL_BUILD") == 0)) { fout << "Begin Project Dependency\n"; fout << "Project_Dep_Name " << j->first << "\n"; |