support for network path link libraries
This commit is contained in:
parent
f709e5588e
commit
ba4e56385c
@ -546,6 +546,22 @@ void cmDSPWriter::WriteDSPHeader(std::ostream& fout, const char *libName,
|
|||||||
lib += ".lib";
|
lib += ".lib";
|
||||||
}
|
}
|
||||||
lib = cmSystemTools::EscapeSpaces(lib.c_str());
|
lib = cmSystemTools::EscapeSpaces(lib.c_str());
|
||||||
|
// watch for network paths, MSVC can't seem to load //
|
||||||
|
if (strlen(lib.c_str()) > 2 && lib.c_str()[0] == '/' &&
|
||||||
|
lib.c_str()[1] == '/')
|
||||||
|
{
|
||||||
|
std::string lib2 = "\\\\";
|
||||||
|
lib2 += (lib.c_str() + 2);
|
||||||
|
lib = lib2;
|
||||||
|
}
|
||||||
|
if (strlen(lib.c_str()) > 3 && lib.c_str()[0] == '"' &&
|
||||||
|
lib.c_str()[1] == '/' && lib.c_str()[2] == '/')
|
||||||
|
{
|
||||||
|
std::string lib2 = "\"\\\\";
|
||||||
|
lib2 += (lib.c_str() + 3);
|
||||||
|
lib = lib2;
|
||||||
|
}
|
||||||
|
|
||||||
if (j->second == cmTarget::GENERAL)
|
if (j->second == cmTarget::GENERAL)
|
||||||
{
|
{
|
||||||
libOptions += " ";
|
libOptions += " ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user