[CMake] mingw vs MSYS makefiles

Bill Hoffman bill.hoffman at kitware.com
Thu Feb 23 17:55:14 EST 2012


On 2/23/2012 6:20 AM, Andrea Crotti wrote:
>
> So well I thought I could just use the MSYS Makefiles instead, but
> reconfiguring and with the same target that doesn't work:
>
> Scanning dependencies of target cleanup_system
> process_begin: CreateProcess(NULL, /c/python25/python.exe
> h:/git_projs/PSI_Hamburg/utils/utils/bin/clean_global.py, ...) failed.
> make (e=2): The system cannot find the file specified.
> epd-make[3]: *** [CMakeFiles/cleanup_system] Error 2
> epd-make[2]: *** [CMakeFiles/cleanup_system.dir/all] Error 2
> epd-make[1]: *** [CMakeFiles/run_as_user.dir/rule] Error 2
> epd-make: *** [run_as_user] Error 2

I don't think anyone really addressed your question.  Your question 
seems to have taken on a whole new life....

The problem seems to be that your cmake file is creating makefiles that 
use a python program in them.  For some reason python is not working 
from an msys shell for you.  You should debug that, and try to figure 
out how to get a python that does work, or figure out why this python is 
failing under msys.

Moral of the story, don't depend on python in your build, use cmake 
scripts if possible, or c programs that you build .... :)


-Bill



More information about the CMake mailing list