View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013112CMakeCMakepublic2012-04-09 04:262016-06-10 14:31
ReporterA. Saratow 
Assigned ToBill Hoffman 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
Platformx64OSWindowsOS Version6.1 SP 1
Product VersionCMake 2.8.7 
Target VersionFixed in Version 
Summary0013112: Support for Unix Makefiles with DOS Paths
DescriptionI 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).
TagsNo tags attached.
Attached Fileszip file icon CMDMakefiles.zip [^] (2,222 bytes) 2012-04-09 04:26
patch file icon v2.8.7+0001-Add-CMD-Makefiles-generator-13112.patch [^] (6,451 bytes) 2012-04-10 11:08 [Show Content]

 Relationships

  Notes
(0029114)
Brad King (manager)
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 (administrator)
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.

 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
2012-04-10 11:08 Brad King File Added: v2.8.7+0001-Add-CMD-Makefiles-generator-13112.patch
2012-04-10 11:09 Brad King Note Added: 0029114
2012-04-10 11:09 Brad King Assigned To => Bill Hoffman
2012-04-10 11:09 Brad King Status new => assigned
2016-06-10 14:28 Kitware Robot Note Added: 0042019
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team