summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-02 16:48:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-02 16:48:09 (GMT)
commit2fb1df42a25ef922a81d03d85317954ed5cfe8bf (patch)
tree884ebac50b48a21039fd861b87df61aa1ba0442c
parent0eb520f47c0e6192819964e13487e0ea27cdb719 (diff)
parentb3f9fe42f949515dfdb2635bc0031c5b1b807dc0 (diff)
downloadCMake-2fb1df42a25ef922a81d03d85317954ed5cfe8bf.zip
CMake-2fb1df42a25ef922a81d03d85317954ed5cfe8bf.tar.gz
CMake-2fb1df42a25ef922a81d03d85317954ed5cfe8bf.tar.bz2
Merge topic 'find_package-report-CONFIGS-error'
b3f9fe4 find_package: print error if an invalid CONFIGS name is used
-rw-r--r--Source/cmFindPackageCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 22bb628..b0a7607 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -538,6 +538,7 @@ bool cmFindPackageCommand
e << "given CONFIGS option followed by invalid file name \""
<< args[i] << "\". The names given must be file names without "
<< "a path and with a \".cmake\" extension.";
+ this->SetError(e.str().c_str());
return false;
}
this->Configs.push_back(args[i]);