Browse Source

Projucer: Fixed incorrect Xcode property in the CLion exporter

tags/2021-05-28
ed 5 years ago
parent
commit
2f098c16d0
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h

+ 15
- 0
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h 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;


Loading…
Cancel
Save