diff options
author | Brad King <brad.king@kitware.com> | 2006-04-05 15:05:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-04-05 15:05:06 (GMT) |
commit | 8e39418f6c6f9ed70adcefd3338ec85568cbee9c (patch) | |
tree | 58b34cda31b4f2abe0af8dde73d55cf27ac7172f /Source/cmLocalGenerator.cxx | |
parent | 24f08322be0193b9e2deb83588fee341deecee48 (diff) | |
download | CMake-8e39418f6c6f9ed70adcefd3338ec85568cbee9c.zip CMake-8e39418f6c6f9ed70adcefd3338ec85568cbee9c.tar.gz CMake-8e39418f6c6f9ed70adcefd3338ec85568cbee9c.tar.bz2 |
BUG: Fixed cmOrderLinkDirectories to deal with raw link items that do not yet exist and correct drive letter case to avoid duplicate paths on windows. Fixed cmLocalGenerator to pass CMake targets as full paths to cmOrderLinkDirectories to make sure the ordering will pick up the proper target libraries.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index fb5b020..14205b4 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1392,7 +1392,13 @@ cmLocalGenerator::ComputeLinkInformation(cmTarget& target, if(tgt) { // This is a CMake target. Ask the target for its real name. - linkLibraries.push_back(tgt->GetFullName(config)); + // Pass the full path to the target file but purposely leave + // off the per-configuration subdirectory. The link directory + // ordering knows how to deal with this. + std::string linkItem = tgt->GetDirectory(0); + linkItem += "/"; + linkItem += tgt->GetFullName(config); + linkLibraries.push_back(linkItem); if(fullPathLibs) { fullPathLibs->push_back(tgt->GetFullPath(config)); |