diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-27 15:36:29 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-27 15:36:29 (GMT) |
commit | 016e0e52cb758267f1af945b55d2ac5383f4e226 (patch) | |
tree | 92bdbec0c93b22a412663aab64587426c96378e2 /Source | |
parent | f5b978fe2f03c865549d4d0e3c9aebc8edc50288 (diff) | |
download | CMake-016e0e52cb758267f1af945b55d2ac5383f4e226.zip CMake-016e0e52cb758267f1af945b55d2ac5383f4e226.tar.gz CMake-016e0e52cb758267f1af945b55d2ac5383f4e226.tar.bz2 |
BUG: make sure java jar files are not libfoo.jar but are just foo.jar
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 0dab6bf..1131e83 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -342,8 +342,19 @@ std::string cmLocalUnixMakefileGenerator::GetBaseTargetName(const char* n, } // if there is no prefix on the target use the cmake definition if(!targetPrefix && prefixVar) - { - targetPrefix = m_Makefile->GetSafeDefinition(prefixVar); + { + // first check for a language specific suffix var + const char* ll = t.GetLinkerLanguage(this->GetGlobalGenerator()); + if(ll) + { + std::string langPrefix = prefixVar + std::string("_") + ll; + targetPrefix = m_Makefile->GetDefinition(langPrefix.c_str()); + } + // if there not a language specific suffix then use the general one + if(!targetPrefix) + { + targetPrefix = m_Makefile->GetSafeDefinition(prefixVar); + } } std::string name = pathPrefix + (targetPrefix?targetPrefix:""); name += n; |