summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeSetupDialog.cpp
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-12-03 20:59:17 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-12-03 20:59:17 (GMT)
commit906f0a33398a16e95b047f07e8dd1c8e7f3b0375 (patch)
treef5b37072fdbcf78e52fdf425fb62d5301520628c /Source/MFCDialog/CMakeSetupDialog.cpp
parent9214ad0ec663daaecdf7272175451433c9457254 (diff)
downloadCMake-906f0a33398a16e95b047f07e8dd1c8e7f3b0375.zip
CMake-906f0a33398a16e95b047f07e8dd1c8e7f3b0375.tar.gz
CMake-906f0a33398a16e95b047f07e8dd1c8e7f3b0375.tar.bz2
Add /A and /G command-line param to carry the value of "Show Advanced" and generator name in desktop shortcuts
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index fab7aef..43484b4 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -86,9 +86,9 @@ CMakeSetupDialog::CMakeSetupDialog(const CMakeCommandLineInfo& cmdInfo,
//{{AFX_DATA_INIT(CMakeSetupDialog)
m_WhereSource = cmdInfo.m_WhereSource;
m_WhereBuild = cmdInfo.m_WhereBuild;
- m_GeneratorChoiceString = _T("");
- m_AdvancedValues = FALSE;
- //}}AFX_DATA_INIT
+ m_GeneratorChoiceString = cmdInfo.m_GeneratorChoiceString;
+ m_AdvancedValues = cmdInfo.m_AdvancedValues;
+ //}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_BuildPathChanged = false;
@@ -977,7 +977,8 @@ int CMakeSetupDialog::CreateShortcut()
}
// Set the arguments of the shortcut.
- CString args = " /H=" + m_WhereSource + " /B=" + m_WhereBuild;
+ CString args = " /H=\"" + m_WhereSource + "\" /B=\"" + m_WhereBuild + "\" /G=\"" + m_GeneratorChoiceString + "\" /A=\"" + (m_AdvancedValues ? "TRUE" : "FALSE") + "\"";
+
hres = psl->SetArguments(args);
if (! SUCCEEDED (hres))