mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
BUG: Sweeping changes to cleanup computation of target names. This should
fix many bugs related to target names being computed inconsistently. - Centralized computation of a target's file name to a method in cmTarget. Now that global knowledge is always available the *_CMAKE_PATH cache variables are no longer needed. - Centralized computation of link library command lines and link directory search order. - Moved computation of link directories needed to link CMake targets to be after evaluation of linking dependencies. This also removed alot of duplicate code in which each version had its own bugs. This commit is surrounded by the tags CMake-TargetNameCentralization1-pre and CMake-TargetNameCentralization1-post so make the large set of changes easy to identify.
This commit is contained in:
@@ -288,12 +288,6 @@ bool cmFileCommand::HandleInstallCommand(
|
||||
build_type += 2;
|
||||
}
|
||||
|
||||
const char* debug_postfix
|
||||
= m_Makefile->GetDefinition("CMAKE_DEBUG_POSTFIX");
|
||||
if(!debug_postfix)
|
||||
{
|
||||
debug_postfix = "";
|
||||
}
|
||||
const char* destdir = cmSystemTools::GetEnv("DESTDIR");
|
||||
|
||||
std::string extra_dir = "";
|
||||
@@ -505,11 +499,6 @@ bool cmFileCommand::HandleInstallCommand(
|
||||
case cmTarget::MODULE_LIBRARY:
|
||||
case cmTarget::STATIC_LIBRARY:
|
||||
case cmTarget::SHARED_LIBRARY:
|
||||
if ( debug )
|
||||
{
|
||||
fname = fnamewe + debug_postfix + ext;
|
||||
destfile = destfilewe + debug_postfix + ext;
|
||||
}
|
||||
{
|
||||
// Handle shared library versioning
|
||||
const char* lib_version = 0;
|
||||
|
||||
Reference in New Issue
Block a user