diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx index 6b8b105e3..b2211607f 100644 --- a/Source/cmFindLibraryCommand.cxx +++ b/Source/cmFindLibraryCommand.cxx @@ -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::iterator prefix = prefixes.begin(); prefix != prefixes.end(); ++prefix)