On 27 February 2010 18:12, Naram Qashat <cyberb...@cyberbotx.com> wrote: > On 02/27/10 12:53, John Drescher wrote: >> >> On Sat, Feb 27, 2010 at 12:23 PM, Naram Qashat<cyberb...@cyberbotx.com> >> wrote: >>> >>> I'm wondering if it's possible for CMake to prompt the user for input >>> when >>> it's running, as opposed to relying on passing in arguments for input. >>> Main >>> reason I'm looking for something like this is so we can have optional >>> files >>> that can be enabled or disabled by the user when CMake is run. Ideally >>> this >>> should be able to be done if a certain command-line flag is passed in. >>> >> >> Minus the prompting isn't that what options are for in cmake? I >> believe you can set them either via the gui or by the command line / >> shell. >> >> John > > The problem is that the number of options wouldn't be static because the > number of files that will be optional will change over time. Which is why I > was wondering if there was a way to have CMake prompt while it runs. I'd > rather avoid having an external script searching for the optional files when > CMake would already be doing that.
'cmake -i' does something similar to that. I'm not sure if it's exactly what you want though? -- Matt Williams http://milliams.com _______________________________________________ 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