mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 22:10:32 +00:00
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)
|
||||
{
|
||||
char *buffer = new char[makeCommand.size()+1];
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
if(GetShortPathName(makeCommand.c_str(), buffer,
|
||||
makeCommand.size()+1) != 0)
|
||||
{
|
||||
makeCommand = buffer;
|
||||
delete [] buffer;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
makeCommand += " ";
|
||||
makeCommand += executableName;
|
||||
|
Loading…
Reference in New Issue
Block a user