Revert revision r59381 since it fails to detect VS2010 (and I suppose the other ones, then).

Indeed with VS2010, checking for the string content " 16." instead of "16." makes version checking fail.
After checking with a hex editor what was the character preceding the number "1" of the "16." part of the
version string returned by cl.exe, I saw that it wasn't a space as thought by the author, but the character
of code 0xA0 ...

svn path=/trunk/; revision=59437
This commit is contained in:
Hermès Bélusca-Maïto 2013-07-07 00:23:34 +00:00
parent 006c1387b2
commit 82d21b524a

View file

@ -57,10 +57,10 @@ if defined ROS_ARCH (
cl 2>&1 | find "x86" > NUL && set ARCH=i386
cl 2>&1 | find "x64" > NUL && set ARCH=amd64
cl 2>&1 | find "ARM" > NUL && set ARCH=arm
cl 2>&1 | find " 14." > NUL && set BUILD_ENVIRONMENT=VS8
cl 2>&1 | find " 15." > NUL && set BUILD_ENVIRONMENT=VS9
cl 2>&1 | find " 16." > NUL && set BUILD_ENVIRONMENT=VS10
cl 2>&1 | find " 17." > NUL && set BUILD_ENVIRONMENT=VS11
cl 2>&1 | find "14." > NUL && set BUILD_ENVIRONMENT=VS8
cl 2>&1 | find "15." > NUL && set BUILD_ENVIRONMENT=VS9
cl 2>&1 | find "16." > NUL && set BUILD_ENVIRONMENT=VS10
cl 2>&1 | find "17." > NUL && set BUILD_ENVIRONMENT=VS11
if not defined BUILD_ENVIRONMENT (
echo Error: Visual Studio version too old or version detection failed.
exit /b