diff options
author | Brad King <brad.king@kitware.com> | 2012-02-28 14:51:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-02-28 15:01:44 (GMT) |
commit | d3651041e9f16876d227c757254256039d62d85b (patch) | |
tree | 749b74fe9142a703f802efc71653883064f72b5b /Source/cmFindPackageCommand.h | |
parent | 31ead5f695182dbb96196f9795b6437e013c6567 (diff) | |
download | CMake-d3651041e9f16876d227c757254256039d62d85b.zip CMake-d3651041e9f16876d227c757254256039d62d85b.tar.gz CMake-d3651041e9f16876d227c757254256039d62d85b.tar.bz2 |
find_package: Optionally warn when implicitly using Config mode
Define variable CMAKE_FIND_PACKAGE_WARN_NO_MODULE for use by a project
that wants to use an explicit mode in every call to find_package in
order to generate more specific failure messages. Word the warning
using the new CONFIG and MODULE mode keywords when the minimum required
version of CMake is new enough to have them. Otherwise word the warning
using the old NO_MODULE mode keyword.
Inspired-by: Alex Neundorf <neundorf@kde.org>
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r-- | Source/cmFindPackageCommand.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h index 560df9b..7269749 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.h @@ -130,6 +130,7 @@ private: unsigned int VersionFoundPatch; unsigned int VersionFoundTweak; unsigned int VersionFoundCount; + unsigned int RequiredCMakeVersion; bool Quiet; bool Required; bool Compatibility_1_6; |