diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-08 20:54:30 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-08 20:54:30 (GMT) |
commit | 294dec38c96f80d960ec7aef9014b122de3492a2 (patch) | |
tree | f190a617447c0148c9e954fbeebab563bea44503 /Source | |
parent | c336a9b1ac995fdc6f12815416425c2c44d4f2e8 (diff) | |
download | CMake-294dec38c96f80d960ec7aef9014b122de3492a2.zip CMake-294dec38c96f80d960ec7aef9014b122de3492a2.tar.gz CMake-294dec38c96f80d960ec7aef9014b122de3492a2.tar.bz2 |
BUG: make sure relative paths in command line options are expanded
Diffstat (limited to 'Source')
-rw-r--r-- | Source/MFCDialog/CMakeCommandLineInfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/MFCDialog/CMakeCommandLineInfo.cpp b/Source/MFCDialog/CMakeCommandLineInfo.cpp index f638de6..d286ea0 100644 --- a/Source/MFCDialog/CMakeCommandLineInfo.cpp +++ b/Source/MFCDialog/CMakeCommandLineInfo.cpp @@ -3,6 +3,7 @@ #include "stdafx.h" #include "CMakeCommandLineInfo.h" +#include "cmSystemTools.h" #ifdef _DEBUG #define new DEBUG_NEW @@ -118,15 +119,21 @@ void CMakeCommandLineInfo::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast) } break; case 'B': - this->m_WhereBuild = value; + { + std::string path = cmSystemTools::CollapseFullPath((const char*)value); + this->m_WhereBuild = path.c_str(); break; + } case 'G': this->m_GeneratorChoiceString = value; break; case 'H': - this->m_WhereSource = value; + { + std::string path = cmSystemTools::CollapseFullPath((const char*)value); + this->m_WhereSource = path.c_str(); break; } + } } // Call the base class to ensure proper command line processing |