summaryrefslogtreecommitdiff
path: root/Source/cmStateSnapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmStateSnapshot.h')
-rw-r--r--Source/cmStateSnapshot.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmStateSnapshot.h b/Source/cmStateSnapshot.h
index c315f4851..021fd53c1 100644
--- a/Source/cmStateSnapshot.h
+++ b/Source/cmStateSnapshot.h
@@ -9,6 +9,8 @@
#include <string>
#include <vector>
+#include <cm/string_view>
+
#include "cmLinkedTree.h"
#include "cmPolicies.h"
#include "cmStateTypes.h"
@@ -24,7 +26,7 @@ public:
std::string const* GetDefinition(std::string const& name) const;
bool IsInitialized(std::string const& name) const;
- void SetDefinition(std::string const& name, std::string const& value);
+ void SetDefinition(std::string const& name, cm::string_view value);
void RemoveDefinition(std::string const& name);
std::vector<std::string> UnusedKeys() const;
std::vector<std::string> ClosureKeys() const;