cmake: Fix mt return value when hosted on posix (#14605)
On posix platforms return values are limited to a range from 0 to 255. Cross compiling/linking with MSVC on linux/wine leads to a misinterpretation of the return value 1090650113 of mt.exe.
This commit is contained in:
parent
b80ef72b4d
commit
d384b5aa7b
|
@ -1294,7 +1294,8 @@ int cmcmd::VisualStudioLinkIncremental(std::vector<std::string>& args,
|
||||||
// to do the final link. If mt has any value other than 0 or 1090650113
|
// to do the final link. If mt has any value other than 0 or 1090650113
|
||||||
// then there was some problem with the command itself and there was an
|
// then there was some problem with the command itself and there was an
|
||||||
// error so return the error code back out of cmake so make can report it.
|
// error so return the error code back out of cmake so make can report it.
|
||||||
if(mtRet != 1090650113)
|
// (when hosted on a posix system the value is 187)
|
||||||
|
if(mtRet != 1090650113 && mtRet != 187)
|
||||||
{
|
{
|
||||||
return mtRet;
|
return mtRet;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue