2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2013-05-16 13:20:16 +00:00
|
|
|
#ifndef cmTargetCompileOptionsCommand_h
|
|
|
|
#define cmTargetCompileOptionsCommand_h
|
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2017-04-11 19:42:35 +00:00
|
|
|
|
2016-10-19 06:54:18 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2013-05-16 13:20:16 +00:00
|
|
|
#include "cmTargetPropCommandBase.h"
|
2016-10-19 06:54:18 +00:00
|
|
|
|
|
|
|
class cmCommand;
|
|
|
|
class cmExecutionStatus;
|
|
|
|
class cmTarget;
|
2013-05-16 13:20:16 +00:00
|
|
|
|
|
|
|
class cmTargetCompileOptionsCommand : public cmTargetPropCommandBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2017-09-15 13:56:26 +00:00
|
|
|
cmCommand* Clone() override { return new cmTargetCompileOptionsCommand; }
|
2013-05-16 13:20:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2016-06-27 19:25:27 +00:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
2017-09-15 13:56:26 +00:00
|
|
|
cmExecutionStatus& status) override;
|
2013-05-16 13:20:16 +00:00
|
|
|
|
|
|
|
private:
|
2017-09-15 13:56:26 +00:00
|
|
|
void HandleMissingTarget(const std::string& name) override;
|
2013-05-16 13:20:16 +00:00
|
|
|
|
2016-06-27 19:25:27 +00:00
|
|
|
bool HandleDirectContent(cmTarget* tgt,
|
|
|
|
const std::vector<std::string>& content,
|
2017-09-15 13:56:26 +00:00
|
|
|
bool prepend, bool system) override;
|
|
|
|
std::string Join(const std::vector<std::string>& content) override;
|
2013-05-16 13:20:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|