cmTargetCompileFeaturesCommand.h 1003 B

123456789101112131415161718192021222324252627282930313233
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmTargetCompileFeaturesCommand_h
  4. #define cmTargetCompileFeaturesCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cmTargetPropCommandBase.h"
  9. class cmCommand;
  10. class cmExecutionStatus;
  11. class cmTarget;
  12. class cmTargetCompileFeaturesCommand : public cmTargetPropCommandBase
  13. {
  14. cmCommand* Clone() override { return new cmTargetCompileFeaturesCommand; }
  15. bool InitialPass(std::vector<std::string> const& args,
  16. cmExecutionStatus& status) override;
  17. private:
  18. void HandleMissingTarget(const std::string& name) override;
  19. bool HandleDirectContent(cmTarget* tgt,
  20. const std::vector<std::string>& content,
  21. bool prepend, bool system) override;
  22. std::string Join(const std::vector<std::string>& content) override;
  23. };
  24. #endif