diff options
Diffstat (limited to 'Source/cmFindIncludeCommand.cxx')
-rw-r--r-- | Source/cmFindIncludeCommand.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmFindIncludeCommand.cxx b/Source/cmFindIncludeCommand.cxx index dacb2f5..b66c507 100644 --- a/Source/cmFindIncludeCommand.cxx +++ b/Source/cmFindIncludeCommand.cxx @@ -44,11 +44,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // cmFindIncludeCommand bool cmFindIncludeCommand::Invoke(std::vector<std::string>& args) { - if(args.size() < 2 ) - { - this->SetError("called with incorrect number of arguments"); - return false; - } + this->SetError("This has been deprecated, please use FIND_PATH command instead "); + return false; + + // Now check and see if the value has been stored in the cache // already, if so use that value and don't look for the program const char* cacheValue |