cmPropertyDefinition.cxx 742 B

1234567891011121314151617181920
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmPropertyDefinition.h"
  4. void cmPropertyDefinition::DefineProperty(const std::string& name,
  5. cmProperty::ScopeType scope,
  6. const char* shortDescription,
  7. const char* fullDescription,
  8. bool chain)
  9. {
  10. this->Name = name;
  11. this->Scope = scope;
  12. this->Chained = chain;
  13. if (shortDescription) {
  14. this->ShortDescription = shortDescription;
  15. }
  16. if (fullDescription) {
  17. this->FullDescription = fullDescription;
  18. }
  19. }