MantisBT - CMake
View Issue Details
0014098CMakeCMakepublic2013-04-18 14:032013-10-07 10:09
Ian Monroe 
Robert Maynard 
normalminoralways
closedfixed 
Windows8
CMake 2.8.10.2 
CMake 2.8.12 
0014098: Ninja's add_custom_command does not work if build directory is on a different drive
Today I learned that on Windows to change drives, you must add a /D option to cd. This was breaking the WORKING_DIRECTORY directive with the add_custom_command for Ninja on Windows.

The attached trivial patch resolves the problem.
No tags attached.
patch 0001-On-Windows-with-Ninja-use-cd-D-to-set-directory.patch (1,186) 2013-04-18 14:03
https://public.kitware.com/Bug/file/4745/0001-On-Windows-with-Ninja-use-cd-D-to-set-directory.patch
Issue History
2013-04-18 14:03Ian MonroeNew Issue
2013-04-18 14:03Ian MonroeFile Added: 0001-On-Windows-with-Ninja-use-cd-D-to-set-directory.patch
2013-04-18 14:07Robert MaynardAssigned To => Robert Maynard
2013-04-18 14:07Robert MaynardStatusnew => assigned
2013-04-18 14:18Robert MaynardStatusassigned => acknowledged
2013-05-24 09:37Robert MaynardStatusacknowledged => resolved
2013-05-24 09:37Robert MaynardFixed in Version => CMake 2.8.12
2013-05-24 09:37Robert MaynardResolutionopen => fixed
2013-10-07 10:09Robert MaynardNote Added: 0034060
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0034060)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.