cmGeneratorExpressionDAGChecker.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2012 Stephen Kelly <[email protected]>
  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 cmGeneratorExpressionDAGChecker_h
  11. #define cmGeneratorExpressionDAGChecker_h
  12. #include "cmStandardIncludes.h"
  13. #include "cmGeneratorExpressionEvaluator.h"
  14. //----------------------------------------------------------------------------
  15. struct cmGeneratorExpressionDAGChecker
  16. {
  17. cmGeneratorExpressionDAGChecker(const cmListFileBacktrace &backtrace,
  18. const std::string &target,
  19. const std::string &property,
  20. const GeneratorExpressionContent *content,
  21. cmGeneratorExpressionDAGChecker *parent);
  22. bool check() const;
  23. void reportError(cmGeneratorExpressionContext *context,
  24. const std::string &expr);
  25. private:
  26. bool isDAG() const;
  27. private:
  28. const cmGeneratorExpressionDAGChecker * const Parent;
  29. const std::string Target;
  30. const std::string Property;
  31. const GeneratorExpressionContent * const Content;
  32. const cmListFileBacktrace Backtrace;
  33. bool IsDAG;
  34. };
  35. #endif