[RESOLVED] Can TARGET_ARCH be set from Projucer

I’m trying to get an app running on Linux running on an Intel DN2800 Atom board using a CLion cmake build with JUCE 5.4.4

I know that I need to set -march=x86-64 and if I manually edit CMakeLists.txt changing all references from -march=native to -march=x86-64 then the app runs great on the Atom board.

My question is, can TARGET_ARCH be set so it’s exported from Projucer?

I initially tried adding -march=x86-64 to the Projucer --> Linux Makefile --> Extra Compiler Flags and this gives the following in the LinuxMakefile


But looking in the CMakeLists.txt it looks like $(TARGET_ARCH) is already set to native so overrides the -march=x86-64

I then tried adding TARGET_ARCH=x86-64 to Projucer --> Linux Makefile --> Extra Preprocessor Definitions but that didn’t work either.

Any ideas what I should set in Projucer to set TARGET_ARCH ?

[RESOLVED] Easy to do in Projucer 5.4.7 by setting the Linux Makefile architecture.

btw - how can I edit the title of this post to mark as resolved?

There should a pen icon appear next to the title when you scrolled all way up…

Thanks Daniel - is that just when I view my post? I can’t see it I’m afraid.

Strange, I thought you could always edit your own topics…
anyway as “regular” poster one can edit all topics, so I did that for you…

Superb - many thanks.

And interestingly I can see the pencil now - maybe I was icon blind yesterday!