Use JOM instead of NMAKE when possible.

http://labs.trolltech.com/blogs/2009/03/27/speeding-up-visual-c-qt-builds/
This commit is contained in:
Laurent Rineau 2010-06-23 10:46:45 +00:00
parent 5d77f6a49f
commit 09f3e63a51
1 changed files with 8 additions and 2 deletions

View File

@ -855,8 +855,14 @@ fi
# Detects cygwin
if uname | grep -q "CYGWIN"; then
log "${ACTUAL_LOGFILE}" "Cygwin detected, using nmake"
CMAKE_GENERATOR='-GNMake Makefiles'
MAKE_CMD='nmake'
JOM="`which jom`"
if [ -e "$JOM" ]; then
CMAKE_GENERATOR="-GNMake Makefiles JOM'
MAKE_CMD='jom'
else
CMAKE_GENERATOR='-GNMake Makefiles'
MAKE_CMD='nmake'
fi
IS_CYGWIN='y'
else
log "${ACTUAL_LOGFILE}" "Non-cygwin linux detected, using system make."