[CMake] Changing the the current generator in CMake GUI

Edward Diener eldlistmailingz at tropicsoft.com
Sat Jul 12 05:04:36 EDT 2014


On 7/11/2014 11:01 AM, Bill Hoffman wrote:
> On 7/11/2014 10:33 AM, Edward Diener wrote:
>> Shouldn't there be a way to change the current generator in the CMake
>> GUI ? It seems like I can only do this if I choose a new "Where to build
>> the binaries" path. But what if I just want to change the current
>> generator to something else using the current outpath path ?
> No, once the generator is set and you have run cmake once, you need to
> create a new build tree or wipe out the one you created the first time.
>   CMake stores a bunch of information about the compiler in the cache
> and other files in the build tree.  It does not know how to change all
> that without a clean tree.

It does not seem like cleaning the build tree from within the CMake GUI 
should be a hard programming task, if the end-user wishes to change the 
current generator. Nonetheless thanks for the information.




More information about the CMake mailing list