Commit 42a27242 authored by Brad King's avatar Brad King 💬
Browse files

BUG: Need to use GetSafeDefinition when assigning to a string.

parent 9a5b4eba
......@@ -346,8 +346,8 @@ void cmInstallTargetGenerator
::AddInstallNamePatchRule(std::ostream& os,
const char* destination)
{
std::string installNameTool = this->Target->GetMakefile()->GetDefinition(
"CMAKE_INSTALL_NAME_TOOL");
std::string installNameTool =
this->Target->GetMakefile()->GetSafeDefinition("CMAKE_INSTALL_NAME_TOOL");
// hack: if a new cmake runs on an old build tree, CMAKE_INSTALL_NAME_TOOL
// isn't in the cache, because it was simply hardcoded. To make this work
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment