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

Projucer: Fixed incorrect Xcode property in the CLion exporter

This commit is contained in:
ed 2020-10-22 08:54:06 +01:00
parent 22f0e26451
commit 2f098c16d0

View file

@ -1069,6 +1069,21 @@ private:
if (! shouldUseGNUExtensions())
out << " CXX_EXTENSIONS OFF" << newLine;
if (targetAttributeKeys.contains ("MTL_HEADER_SEARCH_PATHS"))
{
auto pathsString = targetAttributes["MTL_HEADER_SEARCH_PATHS"].trim().substring (1).dropLastCharacters (1);
pathsString = pathsString.replace ("\"$(inherited)\"", {})
.replace ("$(HOME)", "$ENV{HOME}")
.replace ("~", "$ENV{HOME}");
auto paths = StringArray::fromTokens (pathsString, ",\"\t\\", {});
paths.removeEmptyStrings();
out << " XCODE_ATTRIBUTE_MTL_HEADER_SEARCH_PATHS" << " " << paths.joinIntoString (" ").quoted() << newLine;
targetAttributeKeys.removeString ("MTL_HEADER_SEARCH_PATHS");
}
for (auto& key : targetAttributeKeys)
out << " XCODE_ATTRIBUTE_" << key << " " << targetAttributes[key] << newLine;