diff options
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index f6eeedf..e7d760e 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -41,6 +41,15 @@ cmUnixMakefileGenerator::~cmUnixMakefileGenerator() void cmUnixMakefileGenerator::GenerateMakefile() { + // for backwards compatibility if niether c or cxx is + // enabled, the enable cxx + if(! (this->GetLanguageEnabled("C") || + this->GetLanguageEnabled("CXX"))) + { + this->EnableLanguage("CXX"); + } + + // suppoirt override in output directories if (m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH")) { |