diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-04-28 13:00:19 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-05-03 06:48:11 (GMT) |
commit | 29e31e2825a2cd5099b8abe66f4816919cec934a (patch) | |
tree | a1590254fba9ed2a4e5e80b6725fc3f9795ac269 /Source/cmFindPackageCommand.h | |
parent | 1d82670bd4daff26d0d0169820b289bc401f4943 (diff) | |
download | CMake-29e31e2825a2cd5099b8abe66f4816919cec934a.zip CMake-29e31e2825a2cd5099b8abe66f4816919cec934a.tar.gz CMake-29e31e2825a2cd5099b8abe66f4816919cec934a.tar.bz2 |
Packages: Integrate FetchContent and find_package()
Allow FetchContent_MakeAvailable() to try a call to
find_package() first, or redirect a find_package() call to
FetchContent_MakeAvailable(). The user can set variables
to control which of these are allowed or tried by default.
Fixes: #21687
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r-- | Source/cmFindPackageCommand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h index b9f19e4..d01a886 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.h @@ -76,6 +76,7 @@ private: : cmFindCommon::PathLabel(label) { } + static PathLabel PackageRedirect; static PathLabel UserRegistry; static PathLabel Builds; static PathLabel SystemRegistry; @@ -119,8 +120,10 @@ private: }; bool ReadListFile(const std::string& f, PolicyScopeRule psr); void StoreVersionFound(); + void SetConfigDirCacheVariable(const std::string& value); void ComputePrefixes(); + void FillPrefixesPackageRedirect(); void FillPrefixesPackageRoot(); void FillPrefixesCMakeEnvironment(); void FillPrefixesCMakeVariable(); |