Building Release with a Makefile


I'm trying to figure out how to build Release using a Makefile. The documentation says:

" When you’re ready to do a release build, regenerate the build targets by passing -DCMAKE_BUILD_TYPE=Release argument to CMake."

I tried adding this to my Makefile here:


And I don't think it did anything. The .elf is the same size and the performance doesn't seem any better, anyway.

Do I need to switch to CMake? is there any other way here? How can I tell if I'm building Release or Debug for the device? Do I deploy any differently? (Currently I choose "Upload Game to Device" in the Simulator).

Thanks very much.