Commit d9b97201 authored by Brad King's avatar Brad King
Browse files

ENH: Make find_library test for the library file as named before trying...

ENH: Make find_library test for the library file as named before trying prefixes and suffixes.  This will allow users to explicitly search for static libraries on unix.  See bug #1643.
parent a5074872
......@@ -263,6 +263,16 @@ std::string cmFindLibraryCommand::FindLibrary(const char* name)
}
if(!onlyFrameworks)
{
// Try the original library name as specified by the user.
tryPath = *p;
tryPath += name;
if(cmSystemTools::FileExists(tryPath.c_str(), true))
{
tryPath = cmSystemTools::CollapseFullPath(tryPath.c_str());
cmSystemTools::ConvertToUnixSlashes(tryPath);
return tryPath;
}
// Try various library naming conventions.
for(std::vector<std::string>::iterator prefix = prefixes.begin();
prefix != prefixes.end(); ++prefix)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment