mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Remove some c_str() calls.
Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
This commit is contained in:
@@ -102,7 +102,7 @@ cmExportTryCompileFileGenerator::PopulateProperties(cmTarget const* target,
|
||||
{
|
||||
const std::string libs = i->second.GetValue();
|
||||
|
||||
std::string evalResult = this->FindTargets(i->first.c_str(),
|
||||
std::string evalResult = this->FindTargets(i->first,
|
||||
target, emitted);
|
||||
|
||||
std::vector<std::string> depends;
|
||||
@@ -129,7 +129,7 @@ cmExportTryCompileFileGenerator::InstallNameDir(cmTarget* target,
|
||||
if(mf->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME"))
|
||||
{
|
||||
install_name_dir =
|
||||
target->GetInstallNameDirForBuildTree(config.c_str());
|
||||
target->GetInstallNameDirForBuildTree(config);
|
||||
}
|
||||
|
||||
return install_name_dir;
|
||||
|
||||
Reference in New Issue
Block a user