<div dir="ltr"><div>Hi Sam,</div><div>This might not work for all osg specific package find scripts in OpenSceneGraph\CMakeModules, but you should be able to disable packages</div><div>from the cmake command line:</div><div><br></div>from cmake 3.0 documentation:<div><div>Every non-REQUIRED <tt class="gmail-docutils gmail-literal"><span class="gmail-pre">find_package</span></tt> call can be disabled by setting the
<a class="gmail-reference gmail-internal" href="https://cmake.org/cmake/help/v3.0/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html#variable:CMAKE_DISABLE_FIND_PACKAGE_%3CPackageName%3E" title="CMAKE_DISABLE_FIND_PACKAGE_<PackageName>"><tt class="gmail-xref gmail-cmake gmail-cmake-variable gmail-docutils gmail-literal"><span class="gmail-pre">CMAKE_DISABLE_FIND_PACKAGE_<PackageName></span></tt></a> variable to <tt class="gmail-docutils gmail-literal"><span class="gmail-pre">TRUE</span></tt>.<br></div></div><div><br></div><div>If I read the cmake compatibility matrix correctly this should work for cmake 2.8.5 and up.</div><div><br></div><div>for example:</div><div>cmake ../OpenSceneGraph -DCMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg:bool=TRUE<br></div><div><br></div><div>Regards, Laurens.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 8, 2016 at 7:31 PM, Alberto Luaces <span dir="ltr"><<a href="mailto:aluaces@udc.es" target="_blank">aluaces@udc.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, there is no "high-level" way. I hope it works for you.<br>
<div class="HOEnZb"><div class="h5"><br>
sam writes:<br>
<br>
> Hi Alberto,<br>
><br>
> No. I was hoping to avoid hacking the CMakeFiles up. I will give this a try.<br>
><br>
> Thanks!<br>
><br>
> On Tue, Nov 8, 2016 at 5:07 AM, Alberto Luaces <<a href="mailto:aluaces@udc.es">aluaces@udc.es</a>> wrote:<br>
><br>
> sam writes:<br>
><br>
> > Hi All,<br>
> ><br>
> > Is there a simple way to disable the plugin project files from being generated via CMake?<br>
> ><br>
><br>
> Hi, Sam. Did you try to comment or delete the 31st line of src/CMakeLists.txt?<br>
><br>
> <a href="https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/CMakeLists.txt#L31" rel="noreferrer" target="_blank">https://github.com/<wbr>openscenegraph/OpenSceneGraph/<wbr>blob/master/src/CMakeLists.<wbr>txt#L31</a><br>
<br>
--<br>
Alberto<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>