[CMake] cmake-gui: compile when I hit the generate button

David Cole dlrdave at aol.com
Sat Mar 9 10:57:29 EST 2013


The following bug reports (and related ones) request this feature. To the best of my knowledge, nobody has done the work to implement it yet.

    http://public.kitware.com/Bug/view.php?id=8260

    http://public.kitware.com/Bug/view.php?id=11220

It's one of those features which, if implemented, would lead to a bunch more work than it sounds like at first.

For example, what's the best way to indicate build progress? What should happen if the native build tool crashes? How can you interrupt a build that's taking too long?

All these things are already handled external to CMake by all the native tools. Initiating the build from CMake would suddenly make all those things "CMake's problem..."

I'm pretty sure that's why nobody's tackled it yet.

Initiating the build is not hard: just call "cmake --build ."

But handling all the problem cases properly on all the platforms would be a major undertaking.


HTH,
David



On Mar 9, 2013, at 10:08 AM, ChristophK <christoph at kobenetz.de> wrote:

> Hi,
> I'm new to the list and cmake - my name is Christoph.
> 
> I want to develop an application and make it as simple as possible to
> use it, including the build process.
> 
> I know that CMake is a program to generate Makefiles, but is it also
> possible in an easy way to start the build itself from the cmake-gui?
> (I'm using windows 7). Othewise I need to open a console, change the
> directory, type in the commad "mingw32-make ../src". But CMake knows
> about the make-command, so why not use it from the gui?
> 
> After trying "add_custom_command" I figured out it works during the
> build-process, not the cmake-generation. Also "try_compile" does not
> seem to be what I'm looking for as it only compiles a single file ...
> 
> Please help
> Christoph
> --
> 
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130309/88f9631c/attachment.htm>


More information about the CMake mailing list