diff options
Diffstat (limited to 'Source/cmWin32DefinesCommand.cxx')
-rw-r--r-- | Source/cmWin32DefinesCommand.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmWin32DefinesCommand.cxx b/Source/cmWin32DefinesCommand.cxx index 4821b86..c265b1e 100644 --- a/Source/cmWin32DefinesCommand.cxx +++ b/Source/cmWin32DefinesCommand.cxx @@ -25,11 +25,9 @@ cmWin32DefinesCommand::cmWin32DefinesCommand() // cmWin32DefinesCommand bool cmWin32DefinesCommand::Invoke(std::vector<std::string>& args) { - if(args.size() < 1 ) - { - this->SetError("called with incorrect number of arguments"); - return false; - } + this->SetError(" deprecated - use AddDefinitions inside an If block "); + return false; + for(std::vector<std::string>::iterator i = args.begin(); i != args.end(); ++i) { |