cmWin32IncludeDirectoryCommand.cxx 986 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "cmWin32IncludeDirectoryCommand.h"
  12. #include "cmCacheManager.h"
  13. // cmWin32IncludeDirectoryCommand
  14. cmWin32IncludeDirectoryCommand::cmWin32IncludeDirectoryCommand()
  15. {
  16. #ifndef _WIN32
  17. this->EnabledOff();
  18. #endif
  19. }
  20. bool cmWin32IncludeDirectoryCommand::Invoke(std::vector<std::string>& args)
  21. {
  22. this->SetError(" deprecated - use INCLUDE_DIRECTORIES command inside an if block ");
  23. return false;
  24. for(std::vector<std::string>::iterator i = args.begin();
  25. i != args.end(); ++i)
  26. {
  27. m_Makefile->AddIncludeDirectory((*i).c_str());
  28. }
  29. return true;
  30. }