On 5. Sep, 2010, at 20:30 , David Doria wrote:

> Lately I've been making a class full of students use CMake. Without
> exception, I've had to explain why you have to configure twice to
> build VTK. I imagine they are a representative sample of the "Level 0"
> CMake user - they just want the project they are trying to build "to
> work" with default options, etc.
> 
> (The explanation is here:
> http://www.cmake.org/cmake/help/runningcmake.html
> under "Why do I have to edit the cache more than once for some projects?"
> if anyone reading this is wondering)
> 
> Since CMake knows if the cache has changed (it doesn't let you
> generate if it has), when why can't there be a button called "Setup
> project with default options" or "Really configure + generate" that
> configures as many times as  necessary and generates all in one step?
> I bet this button would get the most clicks by the general population.
> 
> Just a suggestion - any thoughts?
> 
> Thanks,
> 
> David

Tell your students to run 'cmake' from the command line (the only sane way of 
running CMake) and you get the desired behavior. No need to spoil your students 
with GUIs and such trivia! ;-)

But honestly, I always wondered at this strangeness, too. Why not configure 
until CMake can generate? I mean, it still could remember which new cache 
variables became available and highlight them for the user, but things would be 
much more intuitive.

Michael

--
There is always a well-known solution to every human problem -- neat, 
plausible, and wrong.
H. L. Mencken

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
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

Reply via email to