https://github.com/Kitware/CMake
Raw File
Tip revision: 5709a7e572df220655659155d26b2f56cb97acf3 authored by Brad King on 08 March 2023, 15:01:06 UTC
CMake 3.25.3
Tip revision: 5709a7e
cmAddDefinitionsCommand.cxx
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
#include "cmAddDefinitionsCommand.h"

#include "cmExecutionStatus.h"
#include "cmMakefile.h"

bool cmAddDefinitionsCommand(std::vector<std::string> const& args,
                             cmExecutionStatus& status)
{
  cmMakefile& mf = status.GetMakefile();
  for (std::string const& i : args) {
    mf.AddDefineFlag(i);
  }
  return true;
}
back to top