diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-05-18 13:29:21 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-05-24 22:46:18 (GMT) |
commit | 2aa83fa15b01941f0267e20a1a4e29793651fefd (patch) | |
tree | 7cd1ba4d72b087094815716e53f8a90fee035205 /Source/cmState.cxx | |
parent | 8a28368feb938f301604c24c0294e2a25749cc77 (diff) | |
download | CMake-2aa83fa15b01941f0267e20a1a4e29793651fefd.zip CMake-2aa83fa15b01941f0267e20a1a4e29793651fefd.tar.gz CMake-2aa83fa15b01941f0267e20a1a4e29793651fefd.tar.bz2 |
Dependency providers: Add find_package and FetchContent support
Fixes: #22619
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index f1144e1..b753373 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -1072,3 +1072,12 @@ bool cmState::ParseCacheEntry(const std::string& entry, std::string& var, return flag; } + +cmState::Command cmState::GetDependencyProviderCommand( + cmDependencyProvider::Method method) const +{ + return (this->DependencyProvider && + this->DependencyProvider->SupportsMethod(method)) + ? this->GetCommand(this->DependencyProvider->GetCommand()) + : Command{}; +} |