[CMake] Can CMake prompt the user for input while it's running?

Bill Hoffman bill.hoffman at kitware.com
Sun Feb 28 10:04:47 EST 2010


Matt Williams wrote:
> On 28 February 2010 14:39, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>>> Off course the cmake UI would authorize to unfilter all vars
>>> just as today there is the advanced/normal view.
>> You could just use the advanced/non-advanced to handle this. When you want
>> to show a variable to the user make it non-advanced.  This would work with
>> ccmake, cmake -i, and cmake-gui.  They all default to showing non-advanced
>> variables by default.
> 
> Except that DART_TESTING_TIMEOUT is for some reason set to
> non-advanced (http://www.itk.org/Bug/view.php?id=10150) and so it will
> show up in the list. Apart from that, I've found that this works very
> well.
> 
You can fix that in your project by marking it advanced yourself. 
mark_as_advanced(DART_TESTING_TIMEOUT) should do the trick, and time 
after you include ctest.

-Bill



More information about the CMake mailing list