summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-13 10:42:50 -0400
committerKen Martin <ken.martin@kitware.com>2002-09-13 10:42:50 -0400
commit6132184cc3a3832463308fa45d7fda17f3df067e (patch)
tree59c853ecf53c4332fc28b5fec6061ba8690e6212 /Source/cmGlobalVisualStudio6Generator.cxx
parentc1da4c9570d57f641f35038bbadb926398d4236c (diff)
downloadcmake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.gz
better trycompile and enable langiages
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx31
1 files changed, 13 insertions, 18 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx
index 79dbba7205..9a03c1526a 100644
--- a/Source/cmGlobalVisualStudio6Generator.cxx
+++ b/Source/cmGlobalVisualStudio6Generator.cxx
@@ -22,25 +22,20 @@
void cmGlobalVisualStudio6Generator::EnableLanguage(const char*,
cmMakefile *mf)
{
- if (!m_LanguagesEnabled)
+ // now load the settings
+ if(!mf->GetDefinition("CMAKE_ROOT"))
{
- m_LanguagesEnabled = true;
-
- // now load the settings
- if(!mf->GetDefinition("CMAKE_ROOT"))
- {
- cmSystemTools::Error(
- "CMAKE_ROOT has not been defined, bad GUI or driver program");
- return;
- }
- if(!this->GetLanguageEnabled("CXX"))
- {
- std::string fpath =
- mf->GetDefinition("CMAKE_ROOT");
- fpath += "/Templates/CMakeWindowsSystemConfig.cmake";
- mf->ReadListFile(NULL,fpath.c_str());
- this->SetLanguageEnabled("CXX");
- }
+ cmSystemTools::Error(
+ "CMAKE_ROOT has not been defined, bad GUI or driver program");
+ return;
+ }
+ if(!this->GetLanguageEnabled("CXX"))
+ {
+ std::string fpath =
+ mf->GetDefinition("CMAKE_ROOT");
+ fpath += "/Templates/CMakeWindowsSystemConfig.cmake";
+ mf->ReadListFile(NULL,fpath.c_str());
+ this->SetLanguageEnabled("CXX");
}
}