[CMake] Is there a way to save/restore options for cmake?

Michael Wild themiwi at gmail.com
Wed Jul 13 13:20:33 EDT 2011


On 07/13/2011 02:56 PM, frank kang wrote:
> Dear all,
> 
> Is there a way to save/restore options/settings? 
> For example, we can save/restore respective settings conveniently for
> different product release in complex cmake.
> 
> Thanks!

Perhaps a cache-initialization file is what you are looking for? Take a
look at the -C option. Note that this file must contain statements of
the form set(... CACHE ...).


Michael


More information about the CMake mailing list