diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-27 12:41:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-27 12:41:07 (GMT) |
commit | 731369ef9cfaa68dfb8582e8db873929a4cd645a (patch) | |
tree | e3c331251c22a0d969647bfac571fc410d8cad42 /Source/cmProjectCommand.cxx | |
parent | ad4f98f3cf20c3befa18979521736dc49b458a6c (diff) | |
download | CMake-731369ef9cfaa68dfb8582e8db873929a4cd645a.zip CMake-731369ef9cfaa68dfb8582e8db873929a4cd645a.tar.gz CMake-731369ef9cfaa68dfb8582e8db873929a4cd645a.tar.bz2 |
ENH: try to initialize all languages at the same time
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r-- | Source/cmProjectCommand.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx index 41592e7..f62d8bd 100644 --- a/Source/cmProjectCommand.cxx +++ b/Source/cmProjectCommand.cxx @@ -48,19 +48,21 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args) m_Makefile->AddDefinition("PROJECT_NAME", args[0].c_str()); + std::vector<std::string> languages; if(args.size() > 1) { for(size_t i =1; i < args.size(); ++i) { - m_Makefile->EnableLanguage(args[i].c_str()); + languages.push_back(args[i]); } } else { // if no language is specified do c and c++ - m_Makefile->EnableLanguage("C"); - m_Makefile->EnableLanguage("CXX"); + languages.push_back("C"); + languages.push_back("CXX"); } + m_Makefile->EnableLanguage(languages); return true; } |