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/cmUnixMakefileGenerator.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/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")) { |