cmRemoveDefinitionsCommand.cxx 557 Bytes
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4
#include "cmRemoveDefinitionsCommand.h"

5 6 7 8
#include "cmMakefile.h"

class cmExecutionStatus;

9
// cmRemoveDefinitionsCommand
10 11
bool cmRemoveDefinitionsCommand::InitialPass(
  std::vector<std::string> const& args, cmExecutionStatus&)
12 13
{
  // it is OK to have no arguments
14
  if (args.empty()) {
15
    return true;
16
  }
17

18
  for (std::string const& i : args) {
19
    this->Makefile->RemoveDefineFlag(i);
20
  }
21 22
  return true;
}