[cmake-developers] Peculiar issue for "NMake Makefiles JOM" (GOT IT TO WORK)

Alan W. Irwin irwin at beluga.phys.uvic.ca
Wed Jun 19 17:31:46 EDT 2013


Thanks to off-list help from Bill, I now have the following (subject
to mail wrapping issues) working with my build_projects project on
Wine:

bash.exe-3.1$ cmake -G"NMake Makefiles JOM" -DCMAKE_C_COMPILER:FILEPATH=/z/home/wine/newstart/MinGW-4.7.2/bin/gcc.exe -DCMAKE_RC_COMPILER:FILEPATH=/z/home/wine/newstart/MinGW-4.7.2/bin/windres.exe -DCMAKE_INSTALL_PREFIX:PATH=/z/home/wine/newstart/build_script/install-git_mingw /z/home/software/plplot_svn/HEAD/plplot_allura/cmake/build_projects >& cmake.out
bash.exe-3.1$ time jom build_ndiff >& build_ndiff.out

real    0m27.527s
user    0m0.000s
sys     0m0.040s

Note, I had to specify both CMAKE_C_COMPILER and CMAKE_RC_COMPILER to
get this C build, install, and test of ndiff to work (without
disabling the RC language).  I also got good build, install, and test
results for the shapelib C library.

The build time numbers for the "MinGW Makefiles" and "MSYS Makefiles"
generators are slightly longer than what I obtained above.  So these
are promising initial efficiency results for the combination of the
"NMake Makefiles JOM" generator and the MinGW suite of compilers for
at least the C case.

I will continue such experiments with projects that enable C++,
Fortran, Ada, and D (e.g., PLplot) as well to see how far I can push
this. If I find any real showstoppers I will create appropriate bug
reports for the "NMake Makefiles JOM" generator.

I also plan to create a bug report about making it easier to use the
"NMake Makefiles JOM" generator without having to specify all these
CMake_??_COMPILER variables and also suppress the following
inappropriate cl-oriented message that appears in results for the
MinGW suite of compilers:

CMake Warning at CMakeLists.txt:4 (project): To use the JOM generator,
cmake must be run from a shell that can use the compiler cl from the
command line.  This environment does not contain INCLUDE, LIB, or
LIBPATH, and these must be set for the cl compiler to work.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________



More information about the cmake-developers mailing list