diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-01 18:58:55 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-01 18:58:55 (GMT) |
commit | 2246e0336db396058ebcec67527bf790a34a8e72 (patch) | |
tree | 2520c5e2ccb6ca13d840e8a22101aaad150d26e7 /Source/MFCDialog | |
parent | ee91e2549921075b02f0a88fb48323b1c015228c (diff) | |
download | CMake-2246e0336db396058ebcec67527bf790a34a8e72.zip CMake-2246e0336db396058ebcec67527bf790a34a8e72.tar.gz CMake-2246e0336db396058ebcec67527bf790a34a8e72.tar.bz2 |
BUG: also offer the extra generators in CMakeSetup
Alex
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index e17a03d..d9094c0 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -11,6 +11,7 @@ #include "PathDialog.h" #include "CMakeSetupDialog.h" #include "CMakeCommandLineInfo.h" +#include "../cmExternalMakefileProjectGenerator.h" #include "../cmListFileCache.h" #include "../cmCacheManager.h" #include "../cmake.h" @@ -1010,7 +1011,10 @@ void CMakeSetupDialog::LoadCacheFromDiskToGUI() if(!it.IsAtEnd()) { m_GeneratorPicked = true; - std::string curGen = it.GetValue(); + const char* extraGen = cachem->GetCacheValue("CMAKE_EXTRA_GENERATOR"); + std::string curGen = cmExternalMakefileProjectGenerator:: + CreateFullGeneratorName(it.GetValue(), extraGen); + if(m_GeneratorDialog.m_GeneratorChoiceString != curGen.c_str()) { m_GeneratorDialog.m_GeneratorChoiceString = curGen.c_str(); |