summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-05-28 14:27:03 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-05-30 14:41:59 (GMT)
commit4fc322bab421a83b12977aadc7dca247db8ae541 (patch)
tree3e57b548bd2326f3a848eb23ad66da33d28f60b5 /Source/cmFindPackageCommand.cxx
parentb0d1ddb7234950374977b83f8dbded806c15b356 (diff)
downloadCMake-4fc322bab421a83b12977aadc7dca247db8ae541.zip
CMake-4fc322bab421a83b12977aadc7dca247db8ae541.tar.gz
CMake-4fc322bab421a83b12977aadc7dca247db8ae541.tar.bz2
AddCacheEntry: Suppress raw pointer usage
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 1c2a937..f863a51 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -1728,7 +1728,7 @@ void cmFindPackageCommand::SetConfigDirCacheVariable(const std::string& value)
std::string const help =
cmStrCat("The directory containing a CMake configuration file for ",
this->Name, '.');
- this->Makefile->AddCacheDefinition(this->Variable, value, help.c_str(),
+ this->Makefile->AddCacheDefinition(this->Variable, value, help,
cmStateEnums::PATH, true);
if (this->Makefile->GetPolicyStatus(cmPolicies::CMP0126) ==
cmPolicies::NEW &&