summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-13 14:42:50 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-13 14:42:50 (GMT)
commit6132184cc3a3832463308fa45d7fda17f3df067e (patch)
tree59c853ecf53c4332fc28b5fec6061ba8690e6212 /Source/cmGlobalVisualStudio6Generator.cxx
parentc1da4c9570d57f641f35038bbadb926398d4236c (diff)
downloadCMake-6132184cc3a3832463308fa45d7fda17f3df067e.zip
CMake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.gz
CMake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.bz2
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 79dbba7..9a03c15 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");
}
}