[CMake] How to FORCE an OPTION?
Marcel Loose
loose at astron.nl
Tue Jul 7 04:30:30 EDT 2009
Hi all,
Is there a way to FORCE an OPTION, other than using
set(VAR <value> CACHE BOOL "docstring" FORCE)
The reason I'm asking is that I'm using two files that preset a number
of CMake options. The first contains generic settings; the second,
host-specific, may override these generic settings.
Since these files can be modified by end-users (i.e. software developers
not necessarily proficient with CMake) I would like to keep the syntax
as easy as possible.
Something like
option(VAR [docstring] <value> FORCE)
would be nice.
Best regards,
Marcel Loose.
More information about the CMake
mailing list