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:
parent
22f0e26451
commit
2f098c16d0
1 changed files with 15 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue