diff options
Diffstat (limited to 'Source/cmUnixDefinesCommand.cxx')
-rw-r--r-- | Source/cmUnixDefinesCommand.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmUnixDefinesCommand.cxx b/Source/cmUnixDefinesCommand.cxx index d88cf50..db729dd 100644 --- a/Source/cmUnixDefinesCommand.cxx +++ b/Source/cmUnixDefinesCommand.cxx @@ -25,11 +25,9 @@ cmUnixDefinesCommand::cmUnixDefinesCommand() // cmUNIXDefinesCommand bool cmUnixDefinesCommand::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) { |