summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorAmitha Perera <perera@cs.rpi.edu>2002-04-28 20:14:21 (GMT)
committerAmitha Perera <perera@cs.rpi.edu>2002-04-28 20:14:21 (GMT)
commit5e1d9ed39e252dc3c7bf3310842e5445b0519edc (patch)
tree059b8f348c18fdec7e98cf0771737fb072ceed0e /Source/cmTargetLinkLibrariesCommand.cxx
parent2ba1ee8672911622d16b1914076fd0df63c62cdb (diff)
downloadCMake-5e1d9ed39e252dc3c7bf3310842e5445b0519edc.zip
CMake-5e1d9ed39e252dc3c7bf3310842e5445b0519edc.tar.gz
CMake-5e1d9ed39e252dc3c7bf3310842e5445b0519edc.tar.bz2
ENH: Make it unnecessary to ever specify LINK_DIRECTORIES for any library
generated in this project, even when LIBRARY_OUTPUT_PATH is set.
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx
index e6d7689..34c57a3 100644
--- a/Source/cmTargetLinkLibrariesCommand.cxx
+++ b/Source/cmTargetLinkLibrariesCommand.cxx
@@ -60,6 +60,10 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> const& a
m_Makefile->AddLinkDirectory( dir );
}
}
+ else
+ {
+ m_Makefile->AddLinkDirectory( ldir );
+ }
}
return true;
}