BUG: fix build for cygwin
This commit is contained in:
parent
1406eae1ba
commit
ba62b9d94d
|
@ -79,12 +79,14 @@ int main (int argc, char *argv[])
|
||||||
if(makeCommand.find(' ') != std::string::npos)
|
if(makeCommand.find(' ') != std::string::npos)
|
||||||
{
|
{
|
||||||
char *buffer = new char[makeCommand.size()+1];
|
char *buffer = new char[makeCommand.size()+1];
|
||||||
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
if(GetShortPathName(makeCommand.c_str(), buffer,
|
if(GetShortPathName(makeCommand.c_str(), buffer,
|
||||||
makeCommand.size()+1) != 0)
|
makeCommand.size()+1) != 0)
|
||||||
{
|
{
|
||||||
makeCommand = buffer;
|
makeCommand = buffer;
|
||||||
delete [] buffer;
|
delete [] buffer;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
makeCommand += " ";
|
makeCommand += " ";
|
||||||
makeCommand += executableName;
|
makeCommand += executableName;
|
||||||
|
|
Loading…
Reference in New Issue