cmSubdirDependsCommand.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmSubdirDependsCommand_h
  14. #define cmSubdirDependsCommand_h
  15. #include "cmCommand.h"
  16. /** \class cmSubdirDependsCommand
  17. * \brief Legacy command. Do not use.
  18. *
  19. * cmSubdirDependsCommand has been left in CMake for compatability with
  20. * projects already using it. Its functionality in supporting parallel
  21. * builds is now automatic. The command does not do anything.
  22. */
  23. class cmSubdirDependsCommand : public cmCommand
  24. {
  25. public:
  26. /**
  27. * This is a virtual constructor for the command.
  28. */
  29. virtual cmCommand* Clone()
  30. {
  31. return new cmSubdirDependsCommand;
  32. }
  33. /**
  34. * This is called when the command is first encountered in
  35. * the CMakeLists.txt file.
  36. */
  37. virtual bool InitialPass(std::vector<std::string> const& args);
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. virtual const char* GetName() { return "SUBDIR_DEPENDS";}
  42. /**
  43. * Succinct documentation.
  44. */
  45. virtual const char* GetTerseDocumentation()
  46. {
  47. return "Legacy command. Does nothing.";
  48. }
  49. /**
  50. * More documentation.
  51. */
  52. virtual const char* GetFullDocumentation()
  53. {
  54. return
  55. " SUBDIR_DEPENDS(subdir dep1 dep2 ...)\n"
  56. "Does not do anything. This command used to help projects order "
  57. "parallel builds correctly. This functionality is now automatic.";
  58. }
  59. cmTypeMacro(cmSubdirDependsCommand, cmCommand);
  60. };
  61. #endif