Merge topic 'fix-osx-framework-detection'
c46490da cmSystemTools: Fix IsPathToFramework implementation (#15535)
This commit is contained in:
commit
c0989eaf2a
@ -1486,15 +1486,8 @@ void cmSystemTools::EnableVSConsoleOutput()
|
|||||||
|
|
||||||
bool cmSystemTools::IsPathToFramework(const char* path)
|
bool cmSystemTools::IsPathToFramework(const char* path)
|
||||||
{
|
{
|
||||||
if(cmSystemTools::FileIsFullPath(path))
|
return (cmSystemTools::FileIsFullPath(path) &&
|
||||||
{
|
cmHasLiteralSuffix(path, ".framework"));
|
||||||
std::string libname = path;
|
|
||||||
if(libname.find(".framework") == libname.size()+1-sizeof(".framework"))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmSystemTools::CreateTar(const char* outFileName,
|
bool cmSystemTools::CreateTar(const char* outFileName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user