diff options
author | Brad King <brad.king@kitware.com> | 2008-07-29 18:57:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-29 18:57:00 (GMT) |
commit | f8f5dde2eec468f8c2ccebabb9771b5f8d21f864 (patch) | |
tree | d7f1526bbe862f327944423cb1f3b1ebe72e3dd9 /Source/cmComputeLinkInformation.cxx | |
parent | 01d143c77b7d50424950e59ef2912de31f836de5 (diff) | |
download | CMake-f8f5dde2eec468f8c2ccebabb9771b5f8d21f864.zip CMake-f8f5dde2eec468f8c2ccebabb9771b5f8d21f864.tar.gz CMake-f8f5dde2eec468f8c2ccebabb9771b5f8d21f864.tar.bz2 |
ENH: Warn when system libraries may be hidden.
We never explicitly specify system library directories in linker or
runtime search paths. Furthermore, libraries in these directories are
always linked by asking the linker to search for them. We need to
generate a warning when explicitly specified search directories contain
files that may hide the system libraries during the search.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index 0c72e4f..119248e 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -1131,6 +1131,10 @@ bool cmComputeLinkInformation::CheckImplicitDirItem(std::string const& item) // portion. This will allow the system linker to locate the proper // library for the architecture at link time. this->AddUserItem(file, false); + + // Make sure the link directory ordering will find the library. + this->OrderLinkerSearchPath->AddLinkLibrary(item); + return true; } |