[CMake] MinGW Makefiles generator and -j

Daniel daniel at connect2.com
Sun Apr 27 20:03:15 EDT 2008


Bill Hoffman wrote:
> I use gmake with MSVC and use the "Unix Makefile" generator.  I use a 
> modified cygwin make that can be found here: 
> http://www.cmake.org/files/cygwin/make.exe
> 
> So, install the basic cygwin with or without make.  Then put the above 
> make into /usr/bin.  Then setup your environment for MSVC (vcvars.bat 
> stuff).   Then use the "Unix Makefile" generator.  The -j will work 
> then.  I think gmake only uses the -j if it has a unix shell, and it 
> does not work from the dos shell.
> 
> -Bill
> 

Thanks, -j is working with this version of make and the compile time is down 
from 7m45s to 4m30s.  I am a little confused about why mingw-make didn't work 
since in my test program it worked even if I did everything from cmd.exe. 
Comparing the MinGW and Unix Makefiles there seems to be nothing different 
except paths so it does seem that make was deciding to disable -j for some reason.

At any rate, it works this way.  Do you happen to have a patch that I can grab 
for the modification to make?
--
Daniel



More information about the CMake mailing list