2018-08-09 18:06:22 +02:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
|
|
#include "cmAddCompileDefinitionsCommand.h"
|
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
#include "cmExecutionStatus.h"
|
2018-08-09 18:06:22 +02:00
|
|
|
#include "cmMakefile.h"
|
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
bool cmAddCompileDefinitionsCommand(std::vector<std::string> const& args,
|
|
|
|
cmExecutionStatus& status)
|
2018-08-09 18:06:22 +02:00
|
|
|
{
|
2020-02-01 23:06:01 +01:00
|
|
|
cmMakefile& mf = status.GetMakefile();
|
2018-08-09 18:06:22 +02:00
|
|
|
for (std::string const& i : args) {
|
2020-02-01 23:06:01 +01:00
|
|
|
mf.AddCompileDefinition(i);
|
2018-08-09 18:06:22 +02:00
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|