diff options
Diffstat (limited to 'Source/cmDSPMakefile.cxx')
-rw-r--r-- | Source/cmDSPMakefile.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx index 3c2969c..c54d1a3 100644 --- a/Source/cmDSPMakefile.cxx +++ b/Source/cmDSPMakefile.cxx @@ -443,19 +443,28 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName, { libOptions += " "; libOptions += j->first; - libOptions += ".lib "; + if(j->first.find(".lib") == std::string::npos) + { + libOptions += ".lib "; + } } if (j->second == cmTarget::DEBUG) { libDebugOptions += " "; libDebugOptions += j->first; - libDebugOptions += ".lib "; + if(j->first.find(".lib") == std::string::npos) + { + libDebugOptions += ".lib "; + } } if (j->second == cmTarget::OPTIMIZED) { libOptimizedOptions += " "; libOptimizedOptions += j->first; - libOptimizedOptions += ".lib "; + if(j->first.find(".lib") == std::string::npos) + { + libOptimizedOptions += ".lib "; + } } } } |