[osg-users] Disabling plugins via CMake
Voerman, L.
l.voerman at rug.nl
Thu Nov 10 04:44:34 PST 2016
Hi Sam,
This might not work for all osg specific package find scripts in
OpenSceneGraph\CMakeModules, but you should be able to disable packages
from the cmake command line:
from cmake 3.0 documentation:
Every non-REQUIRED find_package call can be disabled by setting the
CMAKE_DISABLE_FIND_PACKAGE_<PackageName>
<https://cmake.org/cmake/help/v3.0/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html#variable:CMAKE_DISABLE_FIND_PACKAGE_%3CPackageName%3E>
variable to TRUE.
If I read the cmake compatibility matrix correctly this should work for
cmake 2.8.5 and up.
for example:
cmake ../OpenSceneGraph -DCMAKE_BUILD_TYPE=Release
-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg:bool=TRUE
Regards, Laurens.
On Tue, Nov 8, 2016 at 7:31 PM, Alberto Luaces <aluaces at udc.es> wrote:
> Yes, there is no "high-level" way. I hope it works for you.
>
> sam writes:
>
> > Hi Alberto,
> >
> > No. I was hoping to avoid hacking the CMakeFiles up. I will give this a
> try.
> >
> > Thanks!
> >
> > On Tue, Nov 8, 2016 at 5:07 AM, Alberto Luaces <aluaces at udc.es> wrote:
> >
> > sam writes:
> >
> > > Hi All,
> > >
> > > Is there a simple way to disable the plugin project files from being
> generated via CMake?
> > >
> >
> > Hi, Sam. Did you try to comment or delete the 31st line of
> src/CMakeLists.txt?
> >
> > https://github.com/openscenegraph/OpenSceneGraph/
> blob/master/src/CMakeLists.txt#L31
>
> --
> Alberto
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161110/00217612/attachment-0003.htm>
More information about the osg-users
mailing list