BUG:427 trycompile target must be exe
This commit is contained in:
parent
df32e28b1d
commit
add1f25f58
@ -483,7 +483,13 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir,
|
|||||||
makeCommand += " ";
|
makeCommand += " ";
|
||||||
makeCommand += target;
|
makeCommand += target;
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
std::string tmp = target;
|
||||||
|
// if the target does not already end in . something
|
||||||
|
// then assume .exe
|
||||||
|
if(tmp.size() < 4 || tmp[tmp.size()-4] != '.')
|
||||||
|
{
|
||||||
makeCommand += ".exe";
|
makeCommand += ".exe";
|
||||||
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user