Hi, I am trying to get a user to choose target from cmake-gui, with: SET(TARGET "x86" CACHE STRING "Target (x86 or arm)") #some code here to construct CMAKE_TOOLCHAIN_FILE from TARGET variable
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. 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!
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
