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

This commit is contained in:
Brad King 2007-05-17 17:43:32 -04:00
parent 9a5b4eba97
commit 42a272428b

View File

@ -346,8 +346,8 @@ void cmInstallTargetGenerator
::AddInstallNamePatchRule(std::ostream& os, ::AddInstallNamePatchRule(std::ostream& os,
const char* destination) const char* destination)
{ {
std::string installNameTool = this->Target->GetMakefile()->GetDefinition( std::string installNameTool =
"CMAKE_INSTALL_NAME_TOOL"); this->Target->GetMakefile()->GetSafeDefinition("CMAKE_INSTALL_NAME_TOOL");
// hack: if a new cmake runs on an old build tree, 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 // isn't in the cache, because it was simply hardcoded. To make this work