summaryrefslogtreecommitdiffstats
path: root/Source/cmSiteNameCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-12 12:25:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-12 12:26:07 (GMT)
commitf86d8009c6a4482c81221114a2b04b375564cc94 (patch)
tree3c2a0606494d0ce496f0d234ed531f0a40bf9794 /Source/cmSiteNameCommand.cxx
parent74954a6657a7b8f49ee68d61759df39c1a24e008 (diff)
parent36a5b3d1d165830045b9d7019fbe3df250ce0685 (diff)
downloadCMake-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/cmSiteNameCommand.cxx')
-rw-r--r--Source/cmSiteNameCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmSiteNameCommand.cxx b/Source/cmSiteNameCommand.cxx
index d47f121..b2d905e 100644
--- a/Source/cmSiteNameCommand.cxx
+++ b/Source/cmSiteNameCommand.cxx
@@ -72,8 +72,7 @@ bool cmSiteNameCommand(std::vector<std::string> const& args,
}
#endif
status.GetMakefile().AddCacheDefinition(
- args[0], siteName.c_str(),
- "Name of the computer/site where compile is being run",
+ args[0], siteName, "Name of the computer/site where compile is being run",
cmStateEnums::STRING);
return true;