summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-25 11:24:40 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-05-25 11:24:48 (GMT)
commit5dcf505f63037e23094146730704b031c57c5d06 (patch)
treeb9921b81b3741cad9d1ce13a5a5a0b69fed4d678 /Source/cmFindPackageCommand.h
parent7120221e2464f3ee0f4d511783a78d0d83e9cb03 (diff)
parent2aa83fa15b01941f0267e20a1a4e29793651fefd (diff)
downloadCMake-5dcf505f63037e23094146730704b031c57c5d06.zip
CMake-5dcf505f63037e23094146730704b031c57c5d06.tar.gz
CMake-5dcf505f63037e23094146730704b031c57c5d06.tar.bz2
Merge topic 'dependency-providers'
2aa83fa15b Dependency providers: Add find_package and FetchContent support 8a28368feb FetchContent: Don't discard non-empty SOURCE_DIR and BINARY_DIR 8ce9bb8a0c FetchContent: Don't leak internal variables 74a6ddc339 cmFindPackageCommand: Handle Makefile variable definitions more robustly Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Gerhard Olsson <gerhard.nospam@gmail.com> Merge-request: !7276
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 902fa32..80fd8f8 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -9,6 +9,7 @@
#include <map>
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include <cm/string_view>
@@ -97,7 +98,9 @@ private:
const std::string& prefix, const std::string& version, unsigned int count,
unsigned int major, unsigned int minor, unsigned int patch,
unsigned int tweak);
- void SetModuleVariables(const std::string& components);
+ void SetModuleVariables(
+ const std::string& components,
+ const std::vector<std::pair<std::string, const char*>>& componentVarDefs);
bool FindModule(bool& found);
void AddFindDefinition(const std::string& var, cm::string_view value);
void RestoreFindDefinitions();