summaryrefslogtreecommitdiffstats
path: root/Source/cmUtilitySourceCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-11 13:40:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-11 13:40:43 (GMT)
commit36a5b3d1d165830045b9d7019fbe3df250ce0685 (patch)
treedb147061900c875292e999f0458d36d2b68f6d93 /Source/cmUtilitySourceCommand.cxx
parentc7c6e103d1209f7e29cb2909cf342be75478f304 (diff)
downloadCMake-36a5b3d1d165830045b9d7019fbe3df250ce0685.zip
CMake-36a5b3d1d165830045b9d7019fbe3df250ce0685.tar.gz
CMake-36a5b3d1d165830045b9d7019fbe3df250ce0685.tar.bz2
cmMakefile::AddCacheDefinition: Add overload that accepts std::string value
Diffstat (limited to 'Source/cmUtilitySourceCommand.cxx')
-rw-r--r--Source/cmUtilitySourceCommand.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmUtilitySourceCommand.cxx b/Source/cmUtilitySourceCommand.cxx
index a43165c..5865a19 100644
--- a/Source/cmUtilitySourceCommand.cxx
+++ b/Source/cmUtilitySourceCommand.cxx
@@ -102,15 +102,15 @@ bool cmUtilitySourceCommand(std::vector<std::string> const& args,
cmSystemTools::ReplaceString(utilityExecutable, "/./", "/");
// Enter the value into the cache.
- status.GetMakefile().AddCacheDefinition(
- cacheEntry, utilityExecutable.c_str(), "Path to an internal program.",
- cmStateEnums::FILEPATH);
+ status.GetMakefile().AddCacheDefinition(cacheEntry, utilityExecutable,
+ "Path to an internal program.",
+ cmStateEnums::FILEPATH);
// add a value into the cache that maps from the
// full path to the name of the project
cmSystemTools::ConvertToUnixSlashes(utilityExecutable);
- status.GetMakefile().AddCacheDefinition(
- utilityExecutable, utilityName.c_str(), "Executable to project name.",
- cmStateEnums::INTERNAL);
+ status.GetMakefile().AddCacheDefinition(utilityExecutable, utilityName,
+ "Executable to project name.",
+ cmStateEnums::INTERNAL);
return true;
}