https://github.com/Kitware/CMake
Revision 08170b1b57ebfc7ddc214d39a42842f5a20d5af2 authored by Kitware Robot on 22 August 2020, 04:01:14 UTC, committed by Kitware Robot on 22 August 2020, 04:01:14 UTC
1 parent 6cbaa8e
Raw File
Tip revision: 08170b1b57ebfc7ddc214d39a42842f5a20d5af2 authored by Kitware Robot on 22 August 2020, 04:01:14 UTC
CMake Nightly Date Stamp
Tip revision: 08170b1
cmAddCompileDefinitionsCommand.cxx
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
#include "cmAddCompileDefinitionsCommand.h"

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

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