diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-27 16:02:32 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-27 16:02:32 (GMT) |
commit | 5a5cd54730b586de1b2b769c2e2f32850acf0258 (patch) | |
tree | 9c3dccf1c6555c5c24d18fd33c4ec2319efc9448 /Source/cmLocalGenerator.cxx | |
parent | e09e1679abf03b4a6efffa52dba99852a2ccba01 (diff) | |
download | CMake-5a5cd54730b586de1b2b769c2e2f32850acf0258.zip CMake-5a5cd54730b586de1b2b769c2e2f32850acf0258.tar.gz CMake-5a5cd54730b586de1b2b769c2e2f32850acf0258.tar.bz2 |
ENH: GetSafeDefinition is now in cmMakefile
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 5e9c25a..af92543 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -297,16 +297,6 @@ void cmLocalGenerator::AddInstallRule(std::ostream& fout, const char* dest, << " FILES \"" << sfiles.c_str() << "\")\n"; } -const char* cmLocalGenerator::GetSafeDefinition(const char* def) -{ - const char* ret = m_Makefile->GetDefinition(def); - if(!ret) - { - return ""; - } - return ret; -} - std::string cmLocalGenerator::GetFullTargetName(const char* n, const cmTarget& t) { @@ -338,12 +328,12 @@ std::string cmLocalGenerator::GetFullTargetName(const char* n, // if there is no prefix on the target use the cmake definition if(!targetPrefix && prefixVar) { - targetPrefix = this->GetSafeDefinition(prefixVar); + targetPrefix = m_Makefile->GetSafeDefinition(prefixVar); } // if there is no suffix on the target use the cmake definition if(!targetSuffix && suffixVar) { - targetSuffix = this->GetSafeDefinition(suffixVar); + targetSuffix = m_Makefile->GetSafeDefinition(suffixVar); } std::string name = targetPrefix?targetPrefix:""; name += n; |