You could write a function called force_option() or something like that that simply calls set()<br><br><div class="gmail_quote">On Tue, Jul 7, 2009 at 4:30 AM, Marcel Loose <span dir="ltr">&lt;<a href="mailto:loose@astron.nl">loose@astron.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
Is there a way to FORCE an OPTION, other than using<br>
<br>
  set(VAR &lt;value&gt; CACHE BOOL &quot;docstring&quot; FORCE)<br>
<br>
The reason I&#39;m asking is that I&#39;m using two files that preset a number<br>
of CMake options. The first contains generic settings; the second,<br>
host-specific, may override these generic settings.<br>
<br>
Since these files can be modified by end-users (i.e. software developers<br>
not necessarily proficient with CMake) I would like to keep the syntax<br>
as easy as possible.<br>
<br>
Something like<br>
<br>
  option(VAR [docstring] &lt;value&gt; FORCE)<br>
<br>
would be nice.<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>