diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-11 13:11:26 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-11 13:11:26 (GMT) |
commit | 938e6e487b838fc844249b49f1b5860a91683649 (patch) | |
tree | 66c67bd62ba8b78c77c72ab934bbb62d2f29ef14 /Source/cmMSDotNETGenerator.cxx | |
parent | c1dcaf342a254f0262099af76c11342a33dcf97e (diff) | |
download | CMake-938e6e487b838fc844249b49f1b5860a91683649.zip CMake-938e6e487b838fc844249b49f1b5860a91683649.tar.gz CMake-938e6e487b838fc844249b49f1b5860a91683649.tar.bz2 |
BUG: make sure libraries do not depend on themselves
Diffstat (limited to 'Source/cmMSDotNETGenerator.cxx')
-rw-r--r-- | Source/cmMSDotNETGenerator.cxx | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Source/cmMSDotNETGenerator.cxx b/Source/cmMSDotNETGenerator.cxx index fad8817..998c3a6 100644 --- a/Source/cmMSDotNETGenerator.cxx +++ b/Source/cmMSDotNETGenerator.cxx @@ -936,18 +936,21 @@ void cmMSDotNETGenerator::OutputLibraries(std::ostream& fout, cmTarget::LinkLibraries::const_iterator j; for(j = libs.begin(); j != libs.end(); ++j) { - std::string lib = j->first; - if(j->first.find(".lib") == std::string::npos) + if(j->first != libName) { - lib += ".lib"; + std::string lib = j->first; + if(j->first.find(".lib") == std::string::npos) + { + lib += ".lib"; + } + lib = this->ConvertToXMLOutputPath(lib.c_str()); + if (j->second == cmTarget::GENERAL + || (j->second == cmTarget::DEBUG && strcmp(configName, "DEBUG") == 0) + || (j->second == cmTarget::OPTIMIZED && strcmp(configName, "DEBUG") != 0)) + { + fout << lib << " "; + } } - lib = this->ConvertToXMLOutputPath(lib.c_str()); - if (j->second == cmTarget::GENERAL - || (j->second == cmTarget::DEBUG && strcmp(configName, "DEBUG") == 0) - || (j->second == cmTarget::OPTIMIZED && strcmp(configName, "DEBUG") != 0)) - { - fout << lib << " "; - } } } |