Skip to content

Commit

Permalink
Projucer: Fixed some over-escaping in the CLion exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ed95 committed Jul 6, 2020
1 parent c64ddc4 commit 3411ea5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -833,15 +833,15 @@ class CLionProjectExporter : public ProjectExporter

if (targetAttributeKeys.contains ("GCC_PREPROCESSOR_DEFINITIONS"))
{
defines.addTokens (targetAttributes["GCC_PREPROCESSOR_DEFINITIONS"], "() ,\t", {});
defines.addTokens (targetAttributes["GCC_PREPROCESSOR_DEFINITIONS"], "(),\t", {});
defines.removeEmptyStrings();
targetAttributeKeys.removeString ("GCC_PREPROCESSOR_DEFINITIONS");
}

out << "target_compile_definitions (" << targetVarName << " PRIVATE" << newLine;

for (auto& def : defines)
out << " " << def << newLine;
out << " " << def.replace ("\\\\\\\"", "\\\"").replace ("\\\\ ", " ") << newLine;

out << ")" << newLine << newLine;

Expand Down

0 comments on commit 3411ea5

Please sign in to comment.