Hi Hartmut,

On Thu, Jul 14, 2011 at 11:21 PM, Hartmut Seichter
<[email protected]> wrote:
> there are plenty of cases where you want to avoid compiling/shipping FFMPEG
> with the OSG. Hence, it would be preferable to make the plugin conditional.
> This patch adds an option in CMake.

Just setting any of the FFMPEG_ options to empty via ccmake is
sufficient to switch off the build of the ffmpeg plugin.  I've just
tested this by changing the FFMPEG_LIBAVUTIL_INCLUDE_DIRS to an empty
string via ccmake, and now the ffmpeg doesn't build.

In a more general comment, making all plugins indivudually conditional
in a consistent way would be nice, to do this we'd need to add an
extra macro over existing FIND_PACKAGE() method that CMake provides.
Adding a local disable for each of the plugins isn't appropriate
though as we have 77 plugins, adding the local support would be a
maintaince nightmare.

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to