Re: [CMake] Set CMAKE_TOOLCHAIN_FILE from cmake-gui

2009-05-29 Thread Alexander Neundorf
On Tuesday 26 May 2009, Roland Waltersson wrote: > 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 set

[CMake] Set CMAKE_TOOLCHAIN_FILE from cmake-gui

2009-05-26 Thread Roland Waltersson
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 use