MantisBT - CMake
View Issue Details
0011228CMakeCMakepublic2010-09-13 11:242016-06-10 14:31
Dale Peterson 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-8 
 
0011228: CMake does not generate Unix Makefiles compatible with mainline GNU Make on Cygwin
I have a project setup for an out of source build. When using CMake to generate a Unix Makefile for my project, the makefiles contain windows paths in the dependency lines for the generated makefiles. This is no longer compatible with the version of GNU Make being compiled for cygwin.

It would be beneficial to change CMake to generate unix paths for the dependencies when generating the Unix Makefile under Cygwin.
No tags attached.
Issue History
2010-09-13 11:24Dale PetersonNew Issue
2010-09-13 12:50Bill HoffmanNote Added: 0022213
2010-09-13 12:50Bill HoffmanStatusnew => assigned
2010-09-13 12:50Bill HoffmanAssigned To => Bill Hoffman
2010-09-23 11:28Dale PetersonNote Added: 0022335
2010-09-23 11:44Bill HoffmanNote Added: 0022336
2016-06-10 14:28Kitware RobotNote Added: 0041745
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0022213)
Bill Hoffman   
2010-09-13 12:50   
You have to use a cygwin built cmake to use the cygwin tool chain. The windows CMake can not be used to create files that work with the cygwin tools. The Unix Makefiles generator is useful for using gmake with MS cl.
(0022335)
Dale Peterson   
2010-09-23 11:28   
That is the scenario we are trying to use. We would like to use CMake to generate makefiles which can be built using GNU Make to invoke the MS cl compiler. In order for this to work, windows paths need to be passed to the cl compiler, however the makefile shouldn't contain windows paths in the dependency statements as the mainline GNU make no longer allows that in the syntax.
(0022336)
Bill Hoffman   
2010-09-23 11:44   
Cygwin broke make for this. :)

I have a patched version that I use here:

http://www.cmake.org/files/cygwin/make.exe-cygwin1.7 [^]

Since CMake is a windows program there is no way it can generate cygwin style paths.

The patch for make was pushed into upstream gmake over a year ago, but was never picked up by the cygwin maintainers of gnu make.
(0041745)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.