2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2013-06-04 10:30:24 +02:00
|
|
|
#ifndef cmAddCompileOptionsCommand_h
|
|
|
|
#define cmAddCompileOptionsCommand_h
|
|
|
|
|
2016-10-19 08:54:18 +02:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2013-06-04 10:30:24 +02:00
|
|
|
#include "cmCommand.h"
|
2016-10-19 08:54:18 +02:00
|
|
|
|
|
|
|
class cmExecutionStatus;
|
2013-06-04 10:30:24 +02:00
|
|
|
|
|
|
|
class cmAddCompileOptionsCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2016-06-27 21:25:27 +02:00
|
|
|
cmCommand* Clone() CM_OVERRIDE { return new cmAddCompileOptionsCommand; }
|
2013-06-04 10:30:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2016-06-27 21:25:27 +02:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
|
|
|
cmExecutionStatus& status) CM_OVERRIDE;
|
2013-06-04 10:30:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2016-06-27 21:25:27 +02:00
|
|
|
std::string GetName() const CM_OVERRIDE { return "add_compile_options"; }
|
2013-06-04 10:30:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|