summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-02-17 10:43:27 (GMT)
committerBrad King <brad.king@kitware.com>2012-02-27 21:09:34 (GMT)
commitb3f9fe42f949515dfdb2635bc0031c5b1b807dc0 (patch)
treec6ca48750bb3bdd0f20655fc3b38d0416f5e28e0 /Source/cmFindPackageCommand.cxx
parentd03606a19cc05872baf23269ae8ec61d2e0719e8 (diff)
downloadCMake-b3f9fe42f949515dfdb2635bc0031c5b1b807dc0.zip
CMake-b3f9fe42f949515dfdb2635bc0031c5b1b807dc0.tar.gz
CMake-b3f9fe42f949515dfdb2635bc0031c5b1b807dc0.tar.bz2
find_package: print error if an invalid CONFIGS name is used
In commit 41c2895b (Added version support to Config mode of find_package command, 2008-01-28) the error message was computed but was not reported. Add the SetError call to report it.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-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]);