MantisBT - CMake
View Issue Details
0013112CMakeCMakepublic2012-04-09 04:262016-06-10 14:31
A. Saratow 
Bill Hoffman 
normalfeaturealways
closedmoved 
x64Windows6.1 SP 1
CMake 2.8.7 
 
0013112: Support for Unix Makefiles with DOS Paths
I am using GNU Makefiles on a Windows system together with the Eclipse IDE / CDT to build CMake-managed C++ projects with Visual C++.

It is already possible to use the 'Unix Makefiles' generator (using the GNU Make for Windows package) on Windows systems together with the Visual C++ compiler (cl.exe) instead of the GCC required by MSYS or MinGW Makefiles.

Everything works fine except of the execution of custom build steps (Qt QRC and UIC runs), because those executables are built as a part of the solution and are located inside of the source root. CMake generates a relative path for them (e.g. '../../Qt/bin/uic.exe') which breaks the build at the according target, because cmd.exe fails to figure out how to interpret the '/..' "option".

To resolve this issue I have modified a copy of the cmGlobalMSYSMakefileGenerator class which does nothing more than provide a new generator name 'CMD Makefiles' (and documentation) and set the WindowsShell flag on the created cmLocalGenerator instance to generate backslash-separated paths (see attached ZIP archive with a patch and the new class sources).
No tags attached.
zip CMDMakefiles.zip (2,222) 2012-04-09 04:26
https://public.kitware.com/Bug/file/4291/CMDMakefiles.zip
patch v2.8.7+0001-Add-CMD-Makefiles-generator-13112.patch (6,451) 2012-04-10 11:08
https://public.kitware.com/Bug/file/4292/v2.8.7%2B0001-Add-CMD-Makefiles-generator-13112.patch
Issue History
2012-04-09 04:26A. SaratowNew Issue
2012-04-09 04:26A. SaratowFile Added: CMDMakefiles.zip
2012-04-10 11:08Brad KingFile Added: v2.8.7+0001-Add-CMD-Makefiles-generator-13112.patch
2012-04-10 11:09Brad KingNote Added: 0029114
2012-04-10 11:09Brad KingAssigned To => Bill Hoffman
2012-04-10 11:09Brad KingStatusnew => assigned
2016-06-10 14:28Kitware RobotNote Added: 0042019
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029114)
Brad King   
2012-04-10 11:09   
Neat. I imported the change and re-formatted it for use with "git am". See attached file "v2.8.7+0001-Add-CMD-Makefiles-generator-13112.patch".
(0042019)
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.