1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 19:08:07 +08:00

find_package: Fixed CMAKE_FIND_PACKAGE_PREFER_CONFIG Module fallback

Fixes: #19361
This commit is contained in:
Cristian Adam
2019-06-13 23:58:30 +02:00
parent a423194311
commit 22e65d10c1
4 changed files with 38 additions and 5 deletions

View File

@@ -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();