cmPropertyDefinition.cxx 1.1 KB

1234567891011121314151617181920212223242526272829
  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. #include "cmPropertyDefinition.h"
  11. void cmPropertyDefinition::DefineProperty(const std::string& name,
  12. cmProperty::ScopeType scope,
  13. const char* shortDescription,
  14. const char* fullDescription,
  15. bool chain)
  16. {
  17. this->Name = name;
  18. this->Scope = scope;
  19. this->Chained = chain;
  20. if (shortDescription) {
  21. this->ShortDescription = shortDescription;
  22. }
  23. if (fullDescription) {
  24. this->FullDescription = fullDescription;
  25. }
  26. }