cmProjectRule.cxx 315 B

1234567891011121314
  1. #include "cmProjectRule.h"
  2. // cmProjectRule
  3. bool cmProjectRule::Invoke(std::vector<std::string>& args)
  4. {
  5. if(args.size() < 1 || args.size() > 1)
  6. {
  7. this->SetError("PROJECT called with incorrect number of arguments");
  8. return false;
  9. }
  10. m_Makefile->SetProjectName(args[0].c_str());
  11. return true;
  12. }