cmSubdirDependsCommand.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmSubdirDependsCommand_h
  11. #define cmSubdirDependsCommand_h
  12. #include "cmCommand.h"
  13. /** \class cmSubdirDependsCommand
  14. * \brief Legacy command. Do not use.
  15. *
  16. * cmSubdirDependsCommand has been left in CMake for compatability with
  17. * projects already using it. Its functionality in supporting parallel
  18. * builds is now automatic. The command does not do anything.
  19. */
  20. class cmSubdirDependsCommand : public cmCommand
  21. {
  22. public:
  23. /**
  24. * This is a virtual constructor for the command.
  25. */
  26. virtual cmCommand* Clone()
  27. {
  28. return new cmSubdirDependsCommand;
  29. }
  30. /**
  31. * This is called when the command is first encountered in
  32. * the CMakeLists.txt file.
  33. */
  34. virtual bool InitialPass(std::vector<std::string> const& args,
  35. cmExecutionStatus &status);
  36. /**
  37. * The name of the command as specified in CMakeList.txt.
  38. */
  39. virtual const char* GetName() { return "subdir_depends";}
  40. /**
  41. * Succinct documentation.
  42. */
  43. virtual const char* GetTerseDocumentation()
  44. {
  45. return "Deprecated. Does nothing.";
  46. }
  47. /**
  48. * More documentation.
  49. */
  50. virtual const char* GetFullDocumentation()
  51. {
  52. return
  53. " subdir_depends(subdir dep1 dep2 ...)\n"
  54. "Does not do anything. This command used to help projects order "
  55. "parallel builds correctly. This functionality is now automatic.";
  56. }
  57. /** This command is kept for compatibility with older CMake versions. */
  58. virtual bool IsDiscouraged()
  59. {
  60. return true;
  61. }
  62. cmTypeMacro(cmSubdirDependsCommand, cmCommand);
  63. };
  64. #endif