|
|
@@ -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)
|