BUG: escape spaces before adding .lib
This commit is contained in:
parent
013b9b3849
commit
02bdff675d
|
@ -439,32 +439,26 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
|
|||
if (!target.GetType() == cmTarget::LIBRARY ||
|
||||
(m_LibraryBuildType == DLL && libName != j->first))
|
||||
{
|
||||
std::string lib = j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
lib += ".lib";
|
||||
}
|
||||
lib = cmSystemTools::EscapeSpaces(lib.c_str());
|
||||
if (j->second == cmTarget::GENERAL)
|
||||
{
|
||||
libOptions += " ";
|
||||
libOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptions += ".lib ";
|
||||
}
|
||||
libOptions += lib;
|
||||
}
|
||||
if (j->second == cmTarget::DEBUG)
|
||||
{
|
||||
libDebugOptions += " ";
|
||||
libDebugOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libDebugOptions += ".lib ";
|
||||
}
|
||||
libDebugOptions += lib;
|
||||
}
|
||||
if (j->second == cmTarget::OPTIMIZED)
|
||||
{
|
||||
libOptimizedOptions += " ";
|
||||
libOptimizedOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptimizedOptions += ".lib ";
|
||||
}
|
||||
libOptimizedOptions += lib;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -439,32 +439,26 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName,
|
|||
if (!target.GetType() == cmTarget::LIBRARY ||
|
||||
(m_LibraryBuildType == DLL && libName != j->first))
|
||||
{
|
||||
std::string lib = j->first;
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
lib += ".lib";
|
||||
}
|
||||
lib = cmSystemTools::EscapeSpaces(lib.c_str());
|
||||
if (j->second == cmTarget::GENERAL)
|
||||
{
|
||||
libOptions += " ";
|
||||
libOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptions += ".lib ";
|
||||
}
|
||||
libOptions += lib;
|
||||
}
|
||||
if (j->second == cmTarget::DEBUG)
|
||||
{
|
||||
libDebugOptions += " ";
|
||||
libDebugOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libDebugOptions += ".lib ";
|
||||
}
|
||||
libDebugOptions += lib;
|
||||
}
|
||||
if (j->second == cmTarget::OPTIMIZED)
|
||||
{
|
||||
libOptimizedOptions += " ";
|
||||
libOptimizedOptions += cmSystemTools::EscapeSpaces(j->first.c_str());
|
||||
if(j->first.find(".lib") == std::string::npos)
|
||||
{
|
||||
libOptimizedOptions += ".lib ";
|
||||
}
|
||||
libOptimizedOptions += lib;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue