Hi,<br>I am trying to get a user to choose target from cmake-gui, with:<br><br>SET(TARGET "x86" CACHE STRING "Target (x86 or arm)")<br>#some code here to construct CMAKE_TOOLCHAIN_FILE from TARGET variable<br>
<br>This however don't work as the compiler settings are initialized when cmake-gui starts, not when the user presses Generate. So changing TARGET won't have any effect, except by chaning its default value. <br><br>
I have solved this now by instead using an .sh file to invoke cmake, but I would really like to be able to change this via cmake-gui. Is it even possible? thanks in advance!<br><br><br>