Set the BUILD environment variable properly when building with MinGW implementations that lack a Unix shell (TDM-GCC, for instance);  Only set CMP0022 if it is supported (older CMake implementations don't support it);  Remove trailing spaces
Set the BUILD environment variable properly when building with MinGW implementations that lack a Unix shell (TDM-GCC, for instance);  Only set CMP0022 if it is supported (older CMake implementations don't support it);  Remove trailing spaces



bygreencn/mozjpeg,m-2k/mozjpeg,zhoujianhanyu/mozjpeg,billychappell/mozjpeg,ekandrot/mozjpeg,bygreencn/mozjpeg,ekandrot/mozjpeg,zhoujianhanyu/mozjpeg,zhoujianhanyu/mozjpeg,billychappell/mozjpeg,ekandrot/mozjpeg,billychappell/mozjpeg,bygreencn/mozjpeg,zhoujianhanyu/mozjpeg,billychappell/mozjpeg,m-2k/mozjpeg,ekandrot/mozjpeg,m-2k/mozjpeg,bygreencn/mozjpeg,ekandrot/mozjpeg,m-2k/mozjpeg,bygreencn/mozjpeg,zhoujianhanyu/mozjpeg,m-2k/mozjpeg,billychappell/mozjpeg