cmEndIfCommand.cxx 774 B

1234567891011121314151617181920212223242526272829303132
  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 "cmEndIfCommand.h"
  12. #include "cmCacheManager.h"
  13. bool cmEndIfCommand::Invoke(std::vector<std::string>& args)
  14. {
  15. if(args.size() < 1 )
  16. {
  17. this->SetError("called with incorrect number of arguments");
  18. return false;
  19. }
  20. // remove any function blockers for this define
  21. m_Makefile->RemoveFunctionBlocker("ENDIF",args);
  22. return true;
  23. }