[cmake-developers] [CMake 0013112]: Support for Unix Makefiles with DOS Paths

Mantis Bug Tracker mantis at public.kitware.com
Mon Apr 9 04:26:34 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13112 
====================================================================== 
Reported By:                A. Saratow
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13112
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-04-09 04:26 EDT
Last Modified:              2012-04-09 04:26 EDT
====================================================================== 
Summary:                    Support for Unix Makefiles with DOS Paths
Description: 
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).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-04-09 04:26 A. Saratow     New Issue                                    
2012-04-09 04:26 A. Saratow     File Added: CMDMakefiles.zip                    
======================================================================




More information about the cmake-developers mailing list