diff options
author | Brad King <brad.king@kitware.com> | 2020-03-12 12:25:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-12 12:26:07 (GMT) |
commit | f86d8009c6a4482c81221114a2b04b375564cc94 (patch) | |
tree | 3c2a0606494d0ce496f0d234ed531f0a40bf9794 /Source/cmMakefile.h | |
parent | 74954a6657a7b8f49ee68d61759df39c1a24e008 (diff) | |
parent | 36a5b3d1d165830045b9d7019fbe3df250ce0685 (diff) | |
download | CMake-f86d8009c6a4482c81221114a2b04b375564cc94.zip CMake-f86d8009c6a4482c81221114a2b04b375564cc94.tar.gz CMake-f86d8009c6a4482c81221114a2b04b375564cc94.tar.bz2 |
Merge topic 'add-cache-definition'
36a5b3d1d1 cmMakefile::AddCacheDefinition: Add overload that accepts std::string value
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4457
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 9c6dca6..081e69d 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -317,6 +317,12 @@ public: void AddCacheDefinition(const std::string& name, const char* value, const char* doc, cmStateEnums::CacheEntryType type, bool force = false); + void AddCacheDefinition(const std::string& name, const std::string& value, + const char* doc, cmStateEnums::CacheEntryType type, + bool force = false) + { + AddCacheDefinition(name, value.c_str(), doc, type, force); + } /** * Remove a variable definition from the build. This is not valid |