MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0006234 | CMake | CMake | public | 2008-01-11 07:44 | 2008-01-15 14:09 | |||||
Reporter | bullestock | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0006234: Visual Studio: No support for building on different drive | |||||||||
Description | When the build directory is located on another drive than the source directory, custom build steps can fail because the generated .vcproj files issue only a 'cd' command, which does not change the drive. The fix is simple: Add a /d to the cd command (alas, this does not work for Windows versions below W2K). See patch against 2.4.7 below. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | --- c:/user/tma/cmake-2.4.7/Source.orig/cmLocalVisualStudioGenerator.cxx Mon Jul 16 17:16:44 2007 +++ c:/user/tma/cmake-2.4.7/Source/cmLocalVisualStudioGenerator.cxx Thu Jan 10 09:00:29 2008 @@ -20,6 +20,8 @@ #include "cmSourceFile.h" #include "cmSystemTools.h" +#include <windows.h> + //---------------------------------------------------------------------------- cmLocalVisualStudioGenerator::cmLocalVisualStudioGenerator() { @@ -125,6 +127,13 @@ script += newline; newline = newline_text; script += "cd "; + OSVERSIONINFO osv; + osv.dwOSVersionInfoSize = sizeof(osv); + GetVersionEx(&osv); + if(osv.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS) + { + script += "/d "; + } script += this->Convert(workingDirectory, START_OUTPUT, SHELL); } // for visual studio IDE add extra stuff to the PATH | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2008-01-11 07:44 | bullestock | New Issue | ||||||||
2008-01-15 11:57 | Bill Hoffman | Note Added: 0010152 | ||||||||
2008-01-15 11:57 | Bill Hoffman | Status | new => closed | |||||||
2008-01-15 11:57 | Bill Hoffman | Resolution | open => fixed | |||||||
2008-01-15 14:07 | Brad King | Assigned To | => Brad King | |||||||
2008-01-15 14:07 | Brad King | Status | closed => feedback | |||||||
2008-01-15 14:07 | Brad King | Resolution | fixed => reopened | |||||||
2008-01-15 14:07 | Brad King | Note Added: 0010153 | ||||||||
2008-01-15 14:08 | Brad King | Relationship added | duplicate of 0006150 | |||||||
2008-01-15 14:09 | Brad King | Status | feedback => closed | |||||||
2008-01-15 14:09 | Brad King | Note Added: 0010154 | ||||||||
2008-01-15 14:09 | Brad King | Resolution | reopened => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|