Space in project name causes failure

I create a project with the following command:

cocos new “My Game” -l cpp -p

If I have a space in my project name (for example: “My Game”), then the following command results in a Cmake error:


If I create a fresh project with the name “MyGame”, then cmake succeeds.

Any idea what I need to do so I can create projects with spaces in the name?

Use an underscore perhaps.

Project name doesn’t effect bundle name for the App Store.

ok, thanks.