diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-05-22 13:48:33 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-05-22 13:48:33 (GMT) |
commit | fd98b0cca0c18428cdeb9e2a015a8dc0a1fab6d2 (patch) | |
tree | 1974eea05aeb025612799157f281a93323ffbd72 /Source/cmMSProjectGenerator.cxx | |
parent | 2489a3583df89d3b0c23e2170eef7fc5fe284f6b (diff) | |
download | CMake-fd98b0cca0c18428cdeb9e2a015a8dc0a1fab6d2.zip CMake-fd98b0cca0c18428cdeb9e2a015a8dc0a1fab6d2.tar.gz CMake-fd98b0cca0c18428cdeb9e2a015a8dc0a1fab6d2.tar.bz2 |
ENH: enable cxx by default if no languages have been enabled
Diffstat (limited to 'Source/cmMSProjectGenerator.cxx')
-rw-r--r-- | Source/cmMSProjectGenerator.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmMSProjectGenerator.cxx b/Source/cmMSProjectGenerator.cxx index c6a48c4..c577efb 100644 --- a/Source/cmMSProjectGenerator.cxx +++ b/Source/cmMSProjectGenerator.cxx @@ -28,6 +28,7 @@ cmMSProjectGenerator::cmMSProjectGenerator() void cmMSProjectGenerator::GenerateMakefile() { + this->EnableLanguage("CXX"); if(m_BuildDSW) { delete m_DSWWriter; @@ -64,8 +65,13 @@ void cmMSProjectGenerator::EnableLanguage(const char*) "CMAKE_ROOT has not been defined, bad GUI or driver program"); return; } - std::string fpath = - m_Makefile->GetDefinition("CMAKE_ROOT"); - fpath += "/Templates/CMakeWindowsSystemConfig.cmake"; - m_Makefile->ReadListFile(NULL,fpath.c_str()); + if(!this->GetLanguageEnabled("CXX")) + { + std::string fpath = + m_Makefile->GetDefinition("CMAKE_ROOT"); + fpath += "/Templates/CMakeWindowsSystemConfig.cmake"; + m_Makefile->ReadListFile(NULL,fpath.c_str()); + this->SetLanguageEnabled("CXX"); + } } + |