summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-06-13 21:58:30 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-06-13 21:58:30 (GMT)
commit22e65d10c175081ed5f21f86c7064c014fc3f39c (patch)
treea673d33900c33c132c1528072064cc1ec4970f57 /Source/cmFindPackageCommand.h
parenta4231943117f5ba3dd0fdc6c8b1824334162b69f (diff)
downloadCMake-22e65d10c175081ed5f21f86c7064c014fc3f39c.zip
CMake-22e65d10c175081ed5f21f86c7064c014fc3f39c.tar.gz
CMake-22e65d10c175081ed5f21f86c7064c014fc3f39c.tar.bz2
find_package: Fixed CMAKE_FIND_PACKAGE_PREFER_CONFIG Module fallback
Fixes: #19361
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 4f6d97c..316ca0f 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -103,7 +103,14 @@ private:
bool FindModule(bool& found);
void AddFindDefinition(const std::string& var, const char* val);
void RestoreFindDefinitions();
- bool HandlePackageMode();
+
+ enum /*class*/ HandlePackageModeType
+ {
+ Module,
+ Config
+ };
+ bool HandlePackageMode(HandlePackageModeType type);
+
bool FindConfig();
bool FindPrefixedConfig();
bool FindFrameworkConfig();