cmIncludeDirectoryRule.cxx 418 B

123456789101112131415161718
  1. #include "cmIncludeDirectoryRule.h"
  2. // cmIncludeDirectoryRule
  3. bool cmIncludeDirectoryRule::Invoke(std::vector<std::string>& args)
  4. {
  5. if(args.size() < 1 )
  6. {
  7. this->SetError("called with incorrect number of arguments");
  8. return false;
  9. }
  10. for(std::vector<std::string>::iterator i = args.begin();
  11. i != args.end(); ++i)
  12. {
  13. m_Makefile->AddIncludeDirectory((*i).c_str());
  14. }
  15. return true;
  16. }