diff options
author | Brad King <brad.king@kitware.com> | 2007-05-18 15:36:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-18 15:36:23 (GMT) |
commit | 92c0f41251a26bb90577e582337cc438af4d6a74 (patch) | |
tree | 08d5a1964371e56e66241f1bd368dedae95a10ed /Source | |
parent | 15a7414a60bc31cd75c5e5af2618c3d4ffc64944 (diff) | |
download | CMake-92c0f41251a26bb90577e582337cc438af4d6a74.zip CMake-92c0f41251a26bb90577e582337cc438af4d6a74.tar.gz CMake-92c0f41251a26bb90577e582337cc438af4d6a74.tar.bz2 |
ENH: Use CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES from platform files to block link directories.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index fce1dcd..110c60f 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1512,9 +1512,17 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, // Some search paths should never be emitted emitted.insert(""); - emitted.insert("/usr/lib"); - emitted.insert("/usr/lib32"); - emitted.insert("/usr/lib64"); + if(const char* implicitLinks = + (this->Makefile->GetDefinition + ("CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES"))) + { + std::vector<std::string> implicitLinkVec; + cmSystemTools::ExpandListArgument(implicitLinks, implicitLinkVec); + for(unsigned int k = 0; k < implicitLinkVec.size(); ++k) + { + emitted.insert(implicitLinkVec[k]); + } + } std::string libPathFlag = this->Makefile->GetRequiredDefinition("CMAKE_LIBRARY_PATH_FLAG"); std::string libLinkFlag = |