diff options
author | Brad King <brad.king@kitware.com> | 2007-05-17 21:43:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-17 21:43:32 (GMT) |
commit | 42a272428b3f805427743c58dcb3457982979797 (patch) | |
tree | 683c5d57645c71d8e6596ad32afb6360dd2266e0 /Source/cmInstallTargetGenerator.cxx | |
parent | 9a5b4eba97628c53f051d653cdc8a301f5f32312 (diff) | |
download | CMake-42a272428b3f805427743c58dcb3457982979797.zip CMake-42a272428b3f805427743c58dcb3457982979797.tar.gz CMake-42a272428b3f805427743c58dcb3457982979797.tar.bz2 |
BUG: Need to use GetSafeDefinition when assigning to a string.
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r-- | Source/cmInstallTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index f3d04ef..1572e9a 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -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 |