1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +00:00

Introjucer: avoided mangling Xcode frameworks if they're specified as absolute paths.

This commit is contained in:
jules 2013-11-13 10:04:33 +00:00
parent 5ffd878ebc
commit 272c38ff53

View file

@ -1010,9 +1010,16 @@ private:
void addFramework (const String& frameworkName) const
{
const String path ("System/Library/Frameworks/" + frameworkName + ".framework");
String path (frameworkName);
if (! File::isAbsolutePath (path))
path = "System/Library/Frameworks/" + path;
if (! path.endsWithIgnoreCase (".framework"))
path << ".framework";
const String fileRefID (createFileRefID (path));
addFileReference ("${SDKROOT}/" + path);
addFileReference ((File::isAbsolutePath (frameworkName) ? "" : "${SDKROOT}/") + path);
frameworkIDs.add (addBuildFile (path, fileRefID, false, false));
frameworkFileIDs.add (fileRefID);
}