diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-25 17:11:12 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-25 17:11:12 (GMT) |
commit | 303b77ad4cd3d3f80c0d520e5fd36412ea24b2ad (patch) | |
tree | 746a871e02af1022d421db999e4bacb8fa597021 /Source | |
parent | 059a14a3a60b97000345de9057e6dd9b3627e617 (diff) | |
download | CMake-303b77ad4cd3d3f80c0d520e5fd36412ea24b2ad.zip CMake-303b77ad4cd3d3f80c0d520e5fd36412ea24b2ad.tar.gz CMake-303b77ad4cd3d3f80c0d520e5fd36412ea24b2ad.tar.bz2 |
ENH: give a warning when switching generators to match the cache
Diffstat (limited to 'Source')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index ea3611e..1f16078 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -769,6 +769,13 @@ void CMakeSetupDialog::LoadCacheFromDiskToGUI() cmCacheManager::GetInstance()->GetCacheEntry("CMAKE_GENERATOR")->m_Value; if(m_GeneratorChoiceString != curGen.c_str()) { + std::string message = "Warning: it is not possible to change generators for a binary tree, switching back to "; + message += curGen; + message += ".\nIf you want to build for "; + message += m_GeneratorChoiceString; + message += ", delete all the files in the binary directory or specify a new binary directory."; + ::MessageBox(0, message.c_str(), "Warning", + MB_OKCANCEL|MB_TASKMODAL); m_GeneratorChoiceString = curGen.c_str(); this->UpdateData(FALSE); } |