Projucer generates incorrect syntax in CMake on Windows

#1

Hey folks,

There’s a syntax error in Projucer-generated CMakeLists.txt:

image

The line:

image

Is this a bug or I did something wrong?

0 Likes

#2

This is indeed a bug. Applying the following patch and rebuilding Projucer should fix it:

diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h
index 70b91db7a..3b21050a2 100644
--- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h
+++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h
@@ -404,7 +404,7 @@ private:
                                                       .getChildFile ("resources.rc");

                 if (windowsRcFile.existsAsFile())
-                    out << "    " << windowsRcFile.getRelativePathFrom (getTargetFolder()).quoted() << newLine;
+                    out << "    " << windowsRcFile.getRelativePathFrom (getTargetFolder()).toUnixStyle().quoted() << newLine;
             }

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

@t0m FYI

0 Likes

#3

There were a few bits that needed patching up:


0 Likes