https://github.com/Kitware/CMake
Raw File
Tip revision: 1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe authored by Brad King on 01 July 2020, 11:14:26 UTC
CMake 3.18.0-rc3
Tip revision: 1e26c84
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