summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorFlynn Marquardt <flynn@geomap.de>2013-12-02 15:16:34 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-02 15:17:31 (GMT)
commitd384b5aa7bcc4853af1b5993a5054a8c387d1f6a (patch)
tree8bc96111541f9b5e25288f34b0da2b7d85011873 /Source/cmcmd.cxx
parentb80ef72b4d8e76bf5912d6d59a749a2d94bb49b2 (diff)
downloadCMake-d384b5aa7bcc4853af1b5993a5054a8c387d1f6a.zip
CMake-d384b5aa7bcc4853af1b5993a5054a8c387d1f6a.tar.gz
CMake-d384b5aa7bcc4853af1b5993a5054a8c387d1f6a.tar.bz2
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.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index d4f464c..d3b7b5f 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -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
// 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.
- if(mtRet != 1090650113)
+ // (when hosted on a posix system the value is 187)
+ if(mtRet != 1090650113 && mtRet != 187)
{
return mtRet;
}