Gustaw, I believe cmake_dependent_option<http://cmake.org/cmake/help/cmake2.6docs.html#module:CMakeDependentOption>is what you're looking for.
HTH On Sun, Mar 22, 2009 at 12:31 PM, Gustaw Smolarczyk <wielkie...@gmail.com>wrote: > Hi > > I want to use set(... CACHE ...) to make a cached variable I can > change with cmake-gui/changing CMakeCache.txt. This is simple, but not > as powerful as I require. Some options should be visible in gui only > if another one is enabled. Example: > > set(SomeVar FALSE CACHE BOOL "If SomeVar is enabled") > set(SomethingThatDependsOnSomeVar "none" CACHE STRING "Depends on > 'SomeVar = TRUE'") > > Is that possible with current or future version of CMake? > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Adolfo Rodríguez Tsouroukdissian Robotics engineer PAL ROBOTICS S.L http://www.pal-robotics.com Tel. +34.93.414.53.47 Fax.+34.93.209.11.09
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake