I got a new XP computer at work so I installed some of my standard tools (including cygwin and a new copy of MATLAB 2007a). When I try to compile one of my cmake projects in cygwin, I get an new error (see end of message for error printout). It seems that cmake is incorrectly associating an executable (gmake.exe) in my MATLAB R2007a directory as the make program. Fortunately, there is an easy fix, all I need to do is redirect cmake to the correct file:
$ cmake ../ThreeDID/ -DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make However, it seems odd to me that cmake would identify the MATLAB program as the proper make program. Can someone explain the method cmake uses to identify the make program, and why it would pick the MATLAB program? This would help me determine if the error I got is a "bug" or a "feature" of cmake. Thank you, Dirk $ cmake ../ThreeDID/ -- Check for working C compiler: /usr/bin/gcc.exe -- Check for working C compiler: /usr/bin/gcc.exe -- broken CMake Error: The C compiler "/usr/bin/gcc.exe" is not able to compile a simple t est program. It fails with the following output: c:/Program Files/Matlab/R2007a/bin/win32/gmake.exe -f CMakeFiles/cmTryCompileEx ec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build gmake.exe[1]: Entering directory `C:/cygwin/home/Dirk Colbry/cyg2/CMakeFiles/CMa keTmp' /usr/bin/cmake.exe -E cmake_progress_report /home/Dirk\ Colbry/cyg2/CMakeFiles/C MakeTmp/CMakeFiles 1 process_begin: CreateProcess((null), /usr/bin/cmake.exe -E cmake_progress_report "/home/Dirk Colbry/cyg2/CMakeFiles/CMakeTmp/CMakeFiles" 1, ...) failed. make (e=3): The system cannot find the path specified. gmake.exe[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 3 gmake.exe[1]: Leaving directory `C:/cygwin/home/Dirk Colbry/cyg2/CMakeFiles/CMak eTmp' c:\Program Files\Matlab\R2007a\bin\win32\gmake.exe: *** [cmTryCompileExec/fast] Error 2 CMake will not be able to correctly generate this project. -- Configuring done -- Dr. Dirk Colbry Assistant Research Professor Center for Cognitive Ubiquitous Computing School of Computing and Informatics Arizona State University http://www.dirk.colbry.com/
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
