[CMake] Compiling two versions of file/program

Rob McDonald rob.a.mcdonald at gmail.com
Mon Jan 20 12:11:52 EST 2014


On Mon, Jan 20, 2014 at 7:39 AM, J Decker <d3ck0r at gmail.com> wrote:

> On Mon, Jan 20, 2014 at 7:37 AM, Игорь Пашев <pashev.igor at gmail.com>
> wrote:
> > 2014/1/20 Rob McDonald <rob.a.mcdonald at gmail.com>:
> >> We also have an API/Library mode with no main(), but that can have
> graphics
> >> or not.
> >
> > So, one will have the library with unpredictable API/ABI?
> >
> Ya; probably something like VLC, that gets a predictable API later
> through documentation...
>

The current plan is to keep all the calls available, but turn them into
no-op's on the graphics version.

The graphics/gui side is only relevant for visualization and interactive
use.  So, if you're switching to a truly headless batch-only mode, then the
behavior of no-op calls to the graphics parts of the API will be the same
as what is really desired.

In many ways, the graphics version of the API is like a debug mode.  It'll
be very useful for developing a batch mode program, but when you go to
production, it won't make a difference.

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140120/b883ffc1/attachment.html>


More information about the CMake mailing list