Gustaw,<br><br>I believe <a href="http://cmake.org/cmake/help/cmake2.6docs.html#module:CMakeDependentOption">cmake_dependent_option</a> is what you&#39;re looking for.<br><br>HTH<br><br><div class="gmail_quote">On Sun, Mar 22, 2009 at 12:31 PM, Gustaw Smolarczyk <span dir="ltr">&lt;<a href="mailto:wielkiegie@gmail.com">wielkiegie@gmail.com</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<br>
<br>
I want to use set(... CACHE ...) to make a cached variable I can<br>
change with cmake-gui/changing CMakeCache.txt. This is simple, but not<br>
as powerful as I require. Some options should be visible in gui only<br>
if another one is enabled. Example:<br>
<br>
set(SomeVar FALSE CACHE BOOL &quot;If SomeVar is enabled&quot;)<br>
set(SomethingThatDependsOnSomeVar &quot;none&quot; CACHE STRING &quot;Depends on<br>
&#39;SomeVar = TRUE&#39;&quot;)<br>
<br>
Is that possible with current or future version of CMake?<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>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>