cmFindLibraryRule.cxx 813 B

123456789101112131415161718192021222324252627282930313233
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #include "cmFindLibraryRule.h"
  12. // cmFindLibraryRule
  13. bool cmFindLibraryRule::Invoke(std::vector<std::string>& args)
  14. {
  15. return false;
  16. if(args.size() < 1 )
  17. {
  18. this->SetError("called with incorrect number of arguments");
  19. return false;
  20. }
  21. for(std::vector<std::string>::iterator i = args.begin();
  22. i != args.end(); ++i)
  23. {
  24. m_Makefile->AddDefineFlag((*i).c_str());
  25. }
  26. }